@databrainhq/plugin 0.10.14 → 0.10.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.
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- declare const PivotTable: ({ data, pivotSettings }: any) => JSX.Element;
2
+ declare const PivotTable: ({ data, pivotSettings, onChartReady }: any) => JSX.Element;
3
3
  export default PivotTable;
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
- import { ChartSettingsType, DatasetSettings } from '@/types';
2
+ import { ChartSettingsType } from '@/types';
3
3
  type Props = {
4
4
  data?: Record<string, any>[];
5
5
  chartSettings: ChartSettingsType;
6
6
  setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
7
- datasetSettings: DatasetSettings | undefined;
8
7
  };
9
- export declare const ChartConfig: ({ data, chartSettings, setChartSettings, datasetSettings, }: Props) => JSX.Element;
8
+ export declare const ChartConfig: ({ data, chartSettings, setChartSettings, }: Props) => JSX.Element;
10
9
  export {};
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
- import { ChartSettingsType, DatasetSettings } from '@/types';
2
+ import { ChartSettingsType } from '@/types';
3
3
  import { PopoverMenuProps } from '@/components/PopoverMenu';
4
4
  export type ChartSettingsPopupProps = Partial<Pick<PopoverMenuProps, 'buttonClass' | 'menuClass' | 'menuContainerClass' | 'position' | 'className'>> & {
5
5
  data?: Record<string, any>[];
6
6
  settings: ChartSettingsType;
7
7
  setSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
8
- datasetSettings: DatasetSettings | undefined;
9
8
  };
10
- export declare const ChartSettingsPopup: ({ data, settings, setSettings, buttonClass, menuClass, menuContainerClass, className, position, datasetSettings, }: ChartSettingsPopupProps) => JSX.Element;
9
+ export declare const ChartSettingsPopup: ({ data, settings, setSettings, buttonClass, menuClass, menuContainerClass, className, position, }: ChartSettingsPopupProps) => JSX.Element;
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
2
  import { ChartSettingsType } from '@/types/app';
3
- import { DatasetSettings } from '@/types';
4
3
  type Props = {
5
4
  data: any[] | undefined;
6
5
  chartSettings: ChartSettingsType;
7
6
  setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
8
- datasetSettings: DatasetSettings | undefined;
9
7
  };
10
- export declare const ChartSettings: ({ data, chartSettings, setChartSettings, datasetSettings, }: Props) => JSX.Element;
8
+ export declare const ChartSettings: ({ data, chartSettings, setChartSettings, }: Props) => JSX.Element;
11
9
  export {};
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { MetricOutputProps } from '@/types/metricCreate';
3
- export declare const MetricOutput: ({ data, error, isLoading, previewTableDataList, moreTabs, chartColors, chartSettings, setChartSettings, isUpdateMetric, datasetSettings, }: MetricOutputProps) => JSX.Element;
3
+ export declare const MetricOutput: ({ data, error, isLoading, previewTableDataList, moreTabs, chartColors, chartSettings, setChartSettings, isUpdateMetric, }: MetricOutputProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ClickActionsConfig, ChartSettingsType, DatasetSettings } from '@/types';
2
+ import { ClickActionsConfig, ChartSettingsType } from '@/types';
3
3
  type Props = {
4
4
  data?: Record<string, any>[];
5
5
  isLoading: boolean;
@@ -10,7 +10,6 @@ type Props = {
10
10
  setChartSettings: React.Dispatch<React.SetStateAction<ChartSettingsType>>;
11
11
  handleChartRightClick?: (params: any) => void;
12
12
  chartClickConfig?: ClickActionsConfig['chart'];
13
- datasetSettings: DatasetSettings | undefined;
14
13
  };
15
- export declare const ChartTab: ({ data, isLoading, headerChild, chartSettings, setChartSettings, chartColors, handleChartRightClick, chartClickConfig, chartPopupChild, datasetSettings, }: Props) => JSX.Element;
14
+ export declare const ChartTab: ({ data, isLoading, headerChild, chartSettings, setChartSettings, chartColors, handleChartRightClick, chartClickConfig, chartPopupChild, }: Props) => JSX.Element;
16
15
  export {};