@databrainhq/plugin 0.10.18 → 0.10.20

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.
@@ -118,7 +118,7 @@ export type AxisSettings = {
118
118
  };
119
119
  export type PivotSettingsType = {
120
120
  rows?: string[];
121
- column?: string;
121
+ columns?: string[];
122
122
  };
123
123
  export type ChartSettingsType = {
124
124
  chartType: keyof typeof CHART_TYPES;
@@ -73,6 +73,8 @@ export type MetricOutputProps = {
73
73
  error: string;
74
74
  clientName?: string;
75
75
  isLoading: boolean;
76
+ isEnablePivotTable: boolean;
77
+ groupbyList: any[];
76
78
  setQuery?: React.Dispatch<React.SetStateAction<string>>;
77
79
  setData?: React.Dispatch<React.SetStateAction<any[] | undefined>>;
78
80
  setLoading?: React.Dispatch<React.SetStateAction<boolean>>;
@@ -1,4 +1,5 @@
1
1
  import { ChartSettingsType } from '@/types';
2
+ export declare const adaptiveFormatter: (val: any, decimal: boolean) => string;
2
3
  export type GetChartOptionsParams = {
3
4
  chartOptions: ChartSettingsType;
4
5
  data: Record<string, any>[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@databrainhq/plugin",
3
- "version": "0.10.18",
3
+ "version": "0.10.20",
4
4
  "description": "Databrain app dashboard ui plugin.",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -101,7 +101,8 @@
101
101
  "react-error-boundary": "^3.1.4",
102
102
  "react-grid-layout": "^1.3.4",
103
103
  "react-hook-form": "^7.33.1",
104
- "react-query": "^3.39.2"
104
+ "react-query": "^3.39.2",
105
+ "simplebar-react": "^3.2.4"
105
106
  },
106
107
  "peerDependencies": {
107
108
  "react": "^18.2.0",
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const PivotTable: ({ data, pivotSettings, onChartReady }: any) => JSX.Element;
3
- export default PivotTable;