@databrainhq/plugin 0.8.1 → 0.8.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.
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { EmbeddedMetricCreationProps } from '@/types/metricCreate';
3
- export declare const EmbeddedMetricCreation: ({ clientId, companyId, mode, externalDashboardId, variant, }: EmbeddedMetricCreationProps) => JSX.Element;
3
+ export declare const EmbeddedMetricCreation: ({ clientId, companyId, mode, externalDashboardId, variant, chartColors, }: EmbeddedMetricCreationProps) => 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, }: 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, updateGroup, isEnableGroupBy, backGroundColor, setBackGroundColor, moreTabs, chartColors, }: MetricOutputProps) => JSX.Element;
@@ -48,6 +48,7 @@ declare type Props = {
48
48
  headerChild?: JSX.Element;
49
49
  tableSettings: TableSettings;
50
50
  setTableSettings: React.Dispatch<React.SetStateAction<TableSettings>>;
51
+ chartColors?: string[];
51
52
  };
52
- 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, }: Props) => JSX.Element;
53
+ 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, chartColors, }: Props) => JSX.Element;
53
54
  export {};
@@ -42,5 +42,6 @@ export declare type ExternalMetricListProps = {
42
42
  }[] | undefined;
43
43
  params?: any;
44
44
  companyTenancyType: string;
45
+ externalDashboardId: string;
45
46
  };
46
47
  export declare const ExternalMetricList: React.FC<ExternalMetricListProps>;
@@ -3,5 +3,6 @@ import { ModalProps } from '@/components/Modal';
3
3
  export interface DeleteMetricModalProps extends Omit<ModalProps, 'headerTitle'> {
4
4
  onSuccess: () => void;
5
5
  metricId: string;
6
+ dashboardId: string;
6
7
  }
7
8
  export declare const DeleteMetricModal: React.FC<DeleteMetricModalProps>;
@@ -3,3 +3,4 @@ export * from './useExternalMetric';
3
3
  export * from './useGenerateDatasetMetrics';
4
4
  export * from './useGenerateEmbeddedMetric';
5
5
  export * from './useOutsideAlerter';
6
+ export * from './useApplyAdminTheme';
@@ -0,0 +1,2 @@
1
+ import { Themes } from '@/utils/generated/graphql';
2
+ export declare const useApplyAdminTheme: (adminTheme?: Themes) => void;
@@ -46,6 +46,7 @@ export declare const useEmbeddedDashboard: (token: string) => {
46
46
  id: any;
47
47
  filters: any;
48
48
  } | undefined;
49
+ externalDashboardId: any;
49
50
  rlsSettings: any;
50
51
  companyTenancyType: any;
51
52
  isAllowedToCreateMetrics: boolean;