@databrainhq/plugin 0.8.13 → 0.8.15

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.
Files changed (37) hide show
  1. package/README.md +26 -26
  2. package/dist/components/ChartPopup/index.d.ts +5 -2
  3. package/dist/components/Charts/AreaChart.d.ts +1 -1
  4. package/dist/components/Charts/BarChart.d.ts +2 -6
  5. package/dist/components/Charts/BoxPlot.d.ts +1 -1
  6. package/dist/components/Charts/BubbleChart.d.ts +1 -1
  7. package/dist/components/Charts/ComboChart.d.ts +1 -1
  8. package/dist/components/Charts/DoughnutChart.d.ts +1 -1
  9. package/dist/components/Charts/FunnelChart.d.ts +1 -1
  10. package/dist/components/Charts/GaugeChart.d.ts +1 -1
  11. package/dist/components/Charts/Histogram.d.ts +1 -1
  12. package/dist/components/Charts/LineChart.d.ts +2 -6
  13. package/dist/components/Charts/PieChart.d.ts +1 -1
  14. package/dist/components/Charts/RowChart.d.ts +1 -1
  15. package/dist/components/Charts/SankeyChart.d.ts +1 -1
  16. package/dist/components/Charts/ScatterChart.d.ts +1 -1
  17. package/dist/components/Charts/StackedBarChart.d.ts +1 -1
  18. package/dist/components/Charts/SteppedAreaChart.d.ts +1 -1
  19. package/dist/components/Charts/WaterfallChart.d.ts +1 -1
  20. package/dist/components/DrillBreadCrumb/index.d.ts +6 -0
  21. package/dist/components/MetricChart/MetricChart.d.ts +2 -4
  22. package/dist/components/MetricCreation/components/ConstructMetric/ConstructMetric.d.ts +1 -1
  23. package/dist/components/MetricCreation/components/ConstructMetric/components/MetricForm/index.d.ts +1 -1
  24. package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
  25. package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +5 -3
  26. package/dist/components/index.d.ts +2 -0
  27. package/dist/helpers/groupBy.d.ts +4 -0
  28. package/dist/hooks/index.d.ts +1 -0
  29. package/dist/hooks/useEmbeddedDashboard.d.ts +1 -0
  30. package/dist/hooks/useUnderlyingData.d.ts +1 -1
  31. package/dist/index.es.js +1218 -1530
  32. package/dist/index.umd.js +73 -72
  33. package/dist/style.css +1 -1
  34. package/dist/types/metricCreate.d.ts +5 -5
  35. package/dist/typings.d.ts +17 -17
  36. package/dist/utils/generated/graphql.d.ts +22 -1
  37. package/package.json +98 -98
package/README.md CHANGED
@@ -1,26 +1,26 @@
1
- # @databrainhq/plugin
2
-
3
- > Databrain app ui plugin.
4
-
5
- [![NPM](https://img.shields.io/npm/v/@databrainhq/plugin.svg)](https://www.npmjs.com/package/@databrainhq/plugin) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
-
7
- ## Install
8
-
9
- ```bash
10
- npm install @databrainhq/plugin
11
- ```
12
-
13
- ## Usage
14
-
15
- ```tsx
16
- import { Dashboard } from '@databrainhq/plugin';
17
- import '@databrainhq/plugin/dist/style.css';
18
-
19
- const Example = () => {
20
- return <Dashboard token={/* Your Guest Token */} />;
21
- };
22
- ```
23
-
24
- ## License
25
-
26
- MIT © [databrainhq](https://github.com/databrainhq)
1
+ # @databrainhq/plugin
2
+
3
+ > Databrain app ui plugin.
4
+
5
+ [![NPM](https://img.shields.io/npm/v/@databrainhq/plugin.svg)](https://www.npmjs.com/package/@databrainhq/plugin) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install @databrainhq/plugin
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```tsx
16
+ import { Dashboard } from '@databrainhq/plugin';
17
+ import '@databrainhq/plugin/dist/style.css';
18
+
19
+ const Example = () => {
20
+ return <Dashboard token={/* Your Guest Token */} />;
21
+ };
22
+ ```
23
+
24
+ ## License
25
+
26
+ MIT © [databrainhq](https://github.com/databrainhq)
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { GetUnderlyingData } from '@/types';
2
+ import { ClickActionsConfig, GetUnderlyingData } from '@/types';
3
3
  export declare type ChartPopupProps = React.PropsWithChildren & {
4
4
  getUnderlyingData: GetUnderlyingData;
5
5
  value: any;
@@ -7,8 +7,11 @@ export declare type ChartPopupProps = React.PropsWithChildren & {
7
7
  menuClass?: string;
8
8
  menuContainerClass?: string;
9
9
  isOpen: boolean;
10
+ drilldown?: () => void;
11
+ clickBehaviourConfigs: ClickActionsConfig['chart'];
10
12
  setOpen: React.Dispatch<React.SetStateAction<boolean>>;
11
13
  position?: 'left' | 'right' | 'top' | 'bottom' | 'left-bottom-end' | 'right-bottom-end' | 'left-top-end' | 'right-top-end' | 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right' | 'left-bottom' | 'left-top' | 'right-bottom' | 'right-top' | 'center';
12
14
  };
13
- declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, }: ChartPopupProps) => JSX.Element>;
15
+ export declare const ChartPopup: ({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, drilldown, clickBehaviourConfigs, }: ChartPopupProps) => JSX.Element;
16
+ declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, getUnderlyingData, drilldown, clickBehaviourConfigs, }: ChartPopupProps) => JSX.Element>;
14
17
  export default _default;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const AreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, chartClickConfig, chartRef, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const AreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, backGroundColor, customSettings, chartRef, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default AreaChart;
@@ -1,6 +1,5 @@
1
1
  import EChartsReact from 'echarts-for-react';
2
2
  import React from 'react';
3
- import { ClickActionsConfig } from '@/types';
4
3
  declare type Props = {
5
4
  data: {
6
5
  labels: string[] | undefined;
@@ -11,17 +10,14 @@ declare type Props = {
11
10
  }[] | undefined;
12
11
  };
13
12
  colors?: string[];
14
- updateGroup?: (value: string) => void;
15
- isEnableGroupBy?: boolean;
16
13
  backGroundColor: any;
17
14
  legendSettings: any;
18
15
  labelSettings: any;
19
16
  axisSettings: any;
20
17
  margins: any;
21
18
  customSettings: any;
22
- chartClickConfig: ClickActionsConfig['chart'];
23
19
  chartRef: React.RefObject<EChartsReact>;
24
- handleChartRightClick: (params: any) => void;
20
+ handleChartRightClick?: (params: any) => void;
25
21
  };
26
- declare const BarChart: ({ data, colors, updateGroup, isEnableGroupBy, backGroundColor, legendSettings, labelSettings, axisSettings, margins, customSettings, chartClickConfig, chartRef, handleChartRightClick, }: Props) => JSX.Element;
22
+ declare const BarChart: ({ data, colors, backGroundColor, legendSettings, labelSettings, axisSettings, margins, customSettings, chartRef, handleChartRightClick, }: Props) => JSX.Element;
27
23
  export default BarChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const BoxPlot: ({ data, margins, legendSettings, axisSettings, colors, customSettings, chartClickConfig, chartRef, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const BoxPlot: ({ data, margins, legendSettings, axisSettings, colors, customSettings, chartRef, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default BoxPlot;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const BubbleChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, updateGroup, isEnableGroupBy, customSettings, chartClickConfig, chartRef, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const BubbleChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, customSettings, chartRef, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default BubbleChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const ComboChart: ({ data, margins, legendSettings, labelSettings, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, chartClickConfig, chartRef, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const ComboChart: ({ data, margins, legendSettings, labelSettings, colors, backGroundColor, customSettings, chartRef, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default ComboChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const DoughnutChart: ({ data, margins, legendSettings, labelSettings, colors, updateGroup, isEnableGroupBy, chartClickConfig, chartRef, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const DoughnutChart: ({ data, margins, legendSettings, labelSettings, colors, chartRef, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default DoughnutChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const FunnelChart: ({ funnelData, margins, legendSettings, labelSettings, colors, chartClickConfig, chartRef, handleChartRightClick, customSettings, }: any) => JSX.Element;
2
+ declare const FunnelChart: ({ funnelData, margins, legendSettings, labelSettings, colors, chartRef, handleChartRightClick, customSettings, }: any) => JSX.Element;
3
3
  export default FunnelChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const GaugeChart: ({ gaugeData, margins, legendSettings, colors, chartClickConfig, chartRef, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const GaugeChart: ({ gaugeData, margins, legendSettings, colors, chartRef, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default GaugeChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const Histogram: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, chartClickConfig, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const Histogram: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default Histogram;
@@ -1,7 +1,6 @@
1
1
  import EChartsReact from 'echarts-for-react';
2
2
  import React from 'react';
3
3
  import { AxisSettings, CustomSettings, LabelSettings, LegendSettings } from '@/types/app';
4
- import { ClickActionsConfig } from '@/types';
5
4
  declare type Props = {
6
5
  data: {
7
6
  labels: string[] | undefined;
@@ -16,12 +15,9 @@ declare type Props = {
16
15
  labelSettings: LabelSettings;
17
16
  axisSettings: AxisSettings;
18
17
  colors?: string[];
19
- updateGroup?: (value: string) => void;
20
- isEnableGroupBy?: boolean;
21
18
  customSettings: CustomSettings;
22
- chartClickConfig: ClickActionsConfig['chart'];
23
19
  chartRef: React.RefObject<EChartsReact>;
24
- handleChartRightClick: (params: any) => void;
20
+ handleChartRightClick?: (params: any) => void;
25
21
  };
26
- declare const LineChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, updateGroup, isEnableGroupBy, customSettings, chartClickConfig, chartRef, handleChartRightClick, }: Props) => JSX.Element;
22
+ declare const LineChart: ({ data, margins, legendSettings, labelSettings, axisSettings, colors, customSettings, chartRef, handleChartRightClick, }: Props) => JSX.Element;
27
23
  export default LineChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const PieChart: ({ data, margins, legendSettings, labelSettings, chartRef, colors, updateGroup, isEnableGroupBy, chartClickConfig, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const PieChart: ({ data, margins, legendSettings, labelSettings, chartRef, colors, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default PieChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const RowChart: ({ data, margins, legendSettings, labelSettings, chartRef, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, chartClickConfig, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const RowChart: ({ data, margins, legendSettings, labelSettings, chartRef, colors, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default RowChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const SankeyChart: ({ data, margins, chartRef, colors, backGroundColor, chartClickConfig, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const SankeyChart: ({ data, margins, chartRef, colors, backGroundColor, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default SankeyChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const ScatterChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, chartClickConfig, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const ScatterChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, isEnableGroupBy, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default ScatterChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const StackedBarChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, chartClickConfig, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const StackedBarChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default StackedBarChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const SteppedAreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, chartClickConfig, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const SteppedAreaChart: ({ data, margins, legendSettings, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default SteppedAreaChart;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const WaterFallChart: ({ data, margins, labelSettings, axisSettings, chartRef, colors, updateGroup, isEnableGroupBy, backGroundColor, customSettings, chartClickConfig, handleChartRightClick, }: any) => JSX.Element;
2
+ declare const WaterFallChart: ({ data, margins, labelSettings, axisSettings, chartRef, colors, backGroundColor, customSettings, handleChartRightClick, }: any) => JSX.Element;
3
3
  export default WaterFallChart;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const DrillBreadCrumb: ({ dimensions, drilledLevel, }: {
3
+ dimensions: string[];
4
+ drilledLevel: number;
5
+ }) => JSX.Element;
6
+ export default DrillBreadCrumb;
@@ -29,13 +29,11 @@ export declare type MetricChartProps = {
29
29
  customSettings: CustomSettings;
30
30
  enableSaveAs: boolean;
31
31
  colors?: string[];
32
- updateGroup?: (value: string) => void;
33
- isEnableGroupBy?: boolean;
34
32
  backGroundColor: BackgroundSettings;
35
33
  chartClickConfig: ClickActionsConfig['chart'];
36
34
  tableSettings: TableSettings;
37
35
  chartRef: React.RefObject<EChartsReact>;
38
36
  tableName?: string;
39
- handleChartRightClick: (params: any) => void;
37
+ handleChartRightClick?: (params: any) => void;
40
38
  };
41
- export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, updateGroup, isEnableGroupBy, backGroundColor, chartClickConfig, tableSettings, chartRef, tableName, handleChartRightClick, }: MetricChartProps) => JSX.Element;
39
+ export declare const MetricChart: ({ labels, data, chartType, funnelData, sankeyData, singleValueData, margins, legendSettings, labelSettings, axisSettings, customSettings, enableSaveAs, colors, backGroundColor, chartClickConfig, tableSettings, chartRef, tableName, handleChartRightClick, }: MetricChartProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { ConstructMetricProps } from '@/types/metricCreate';
3
- export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setEnableGroupBy, setSelectedGroupBy, clientId, clientColumn, }: ConstructMetricProps) => JSX.Element;
3
+ export declare const ConstructMetric: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, }: ConstructMetricProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { ConstructMetricProps } from '@/types/metricCreate';
3
- export declare const MetricForm: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, isEnableGroupBy, setSelectedGroupBy, clientId, clientColumn, }: ConstructMetricProps) => JSX.Element;
3
+ export declare const MetricForm: ({ dateTimeColumnList, columnList, database, companyId, tableName, setData, setError, setLoading, setQuery, clientId, clientColumn, }: ConstructMetricProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { MetricOutputProps } from '@/types/metricCreate';
3
- export declare const MetricOutput: ({ data, error, isLoading, labels, funnelData, chartType, datasets, setChartType, setXAxis, setYAxisList, yAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, previewTableDataList, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, tableSettings, setTableSettings, updateGroup, isEnableGroupBy, backGroundColor, setBackGroundColor, moreTabs, chartColors, isUpdateMetric, }: MetricOutputProps) => JSX.Element;
3
+ export declare const MetricOutput: ({ data, error, isLoading, labels, funnelData, chartType, datasets, setChartType, setXAxis, setYAxisList, yAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, previewTableDataList, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, axisSettings, setAxisSettings, customSettings, setCustomSettings, tableSettings, setTableSettings, backGroundColor, setBackGroundColor, moreTabs, chartColors, isUpdateMetric, }: MetricOutputProps) => JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { AxisSettings, LabelSettings, LegendSettings, BackgroundSettings, CustomSettings, TableSettings } from '@/types/app';
3
+ import { ClickActionsConfig } from '@/types';
3
4
  declare type Props = {
4
5
  data: any[] | undefined;
5
6
  labels: string[] | undefined;
@@ -40,16 +41,17 @@ declare type Props = {
40
41
  setAxisSettings: React.Dispatch<React.SetStateAction<AxisSettings>>;
41
42
  customSettings: CustomSettings;
42
43
  setCustomSettings: React.Dispatch<React.SetStateAction<CustomSettings>>;
43
- updateGroup?: (value: string) => void;
44
- isEnableGroupBy?: boolean;
45
44
  isLoading: boolean;
46
45
  backGroundColor: BackgroundSettings;
47
46
  setBackGroundColor: React.Dispatch<React.SetStateAction<BackgroundSettings>>;
48
47
  headerChild?: JSX.Element;
48
+ chartPopupChild?: JSX.Element;
49
49
  tableSettings: TableSettings;
50
50
  setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
51
51
  tableName?: string;
52
52
  chartColors?: string[];
53
+ handleChartRightClick?: (params: any) => void;
54
+ chartClickConfig?: ClickActionsConfig['chart'];
53
55
  };
54
- export declare const ChartTab: ({ labels, datasets, funnelData, chartType, setChartType, data, setXAxis, setYAxisList, yAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, customSettings, setCustomSettings, axisSettings, setAxisSettings, updateGroup, isLoading, isEnableGroupBy, backGroundColor, setBackGroundColor, headerChild, tableSettings, setTableSettings, tableName, chartColors, }: Props) => JSX.Element;
56
+ export declare const ChartTab: ({ labels, datasets, funnelData, chartType, setChartType, data, setXAxis, setYAxisList, yAxisList, xAxis, setMeasure, setStep, step, measure, setSankeyValues, sankeyData, singleValue, setSingleValue, singleValueData, setMargins, margins, legendSettings, setLegendSettings, labelSettings, setLabelSettings, customSettings, setCustomSettings, axisSettings, setAxisSettings, isLoading, backGroundColor, setBackGroundColor, headerChild, tableSettings, setTableSettings, tableName, chartColors, handleChartRightClick, chartClickConfig, chartPopupChild, }: Props) => JSX.Element;
55
57
  export {};
@@ -26,3 +26,5 @@ export * from './TextAreaField';
26
26
  export * from './TimeGrainField';
27
27
  export * from './ToggleButton';
28
28
  export * from './Icons';
29
+ export * from './ChartPopup';
30
+ export * from './DrillBreadCrumb';
@@ -1,6 +1,10 @@
1
+ import { DrillDownSetting } from '@/types';
1
2
  export declare const groupByMultipleKeys: (rawData: any[] | undefined, keys: string[], measureKey: string) => any;
3
+ export declare const groupMeasures: (rawData: any[] | undefined, dimensionKey: string, measureKeys: string[]) => any;
2
4
  export declare const updateGroupData: (data: any[] | undefined, keys: string[], selectedGroupBy: string[], setGroupedData: (value: React.SetStateAction<Record<string, any>[]>) => void) => void;
5
+ export declare const updateDrilledData: (data: any[] | undefined, setGroupedData: (value: React.SetStateAction<Record<string, any>[]>) => void, measureKeys: string[], dimenstionKey: string) => void;
3
6
  export declare const findKeys: (obj: Record<string, any>) => {
4
7
  numberKeys: string[];
5
8
  stringKeys: string[];
6
9
  };
10
+ export declare const drilldown: (columnName: string | undefined, chartParams: any, drillDownSettings: DrillDownSetting | undefined, data: any[] | undefined, setDrilledLevel: React.Dispatch<React.SetStateAction<number>>, drilledLevel: number, setShowChartPopup: React.Dispatch<React.SetStateAction<boolean>>, setGroupedData: React.Dispatch<React.SetStateAction<Record<string, any>[]>>) => void;
@@ -5,3 +5,4 @@ export * from './useGenerateEmbeddedMetric';
5
5
  export * from './useOutsideAlerter';
6
6
  export * from './useApplyAdminTheme';
7
7
  export * from './useClientDashboardLayout';
8
+ export * from './useUnderlyingData';
@@ -35,6 +35,7 @@ export declare const useEmbeddedDashboard: (token: string) => {
35
35
  groupBy: any;
36
36
  rlsConditions: any;
37
37
  clickActions: any;
38
+ drillDownSettings?: any;
38
39
  companyIntegration: {
39
40
  __typename?: "companyIntegrations" | undefined;
40
41
  name: string;
@@ -1,4 +1,4 @@
1
- declare const useUnderlyingData: ({ clientName, tenancyType, values, query, companyId, }: {
1
+ export declare const useUnderlyingData: ({ clientName, tenancyType, values, query, companyId, }: {
2
2
  clientName?: string | undefined;
3
3
  tenancyType?: string | undefined;
4
4
  values?: Record<string, string> | undefined;