@databrainhq/plugin 0.15.11 → 0.15.12

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,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { RawCsvDownloadButtonProps } from '@/components';
2
3
  import { ClientColumnType, GetUnderlyingData } from '@/types';
3
4
  type UnderlyingDataProps = {
4
5
  setShowUnderlyingData: React.Dispatch<React.SetStateAction<boolean>>;
@@ -8,6 +9,7 @@ type UnderlyingDataProps = {
8
9
  columnName: string | undefined;
9
10
  isSingleValueChart: boolean;
10
11
  clientColumnType: ClientColumnType;
12
+ rawCsvDownloadButtonProps: RawCsvDownloadButtonProps;
11
13
  };
12
- declare const _default: React.MemoExoticComponent<({ isShowUnderlyingData, setShowUnderlyingData, getUnderlyingData, columnName, value, isSingleValueChart, clientColumnType, }: UnderlyingDataProps) => React.JSX.Element>;
14
+ declare const _default: React.MemoExoticComponent<({ isShowUnderlyingData, setShowUnderlyingData, getUnderlyingData, columnName, value, isSingleValueChart, clientColumnType, rawCsvDownloadButtonProps, }: UnderlyingDataProps) => React.JSX.Element>;
13
15
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { RawCsvDownloadButtonProps } from '@/components';
2
3
  import { ClientColumnType, GetUnderlyingData } from '@/types';
3
4
  export type ChartPopupProps = React.PropsWithChildren & {
4
5
  getUnderlyingData: GetUnderlyingData;
@@ -20,7 +21,8 @@ export type ChartPopupProps = React.PropsWithChildren & {
20
21
  clientColumnType: ClientColumnType;
21
22
  isAllowedToSeeUnderlyingData?: boolean;
22
23
  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' | 'dynamic';
24
+ rawCsvDownloadButtonProps: RawCsvDownloadButtonProps;
23
25
  };
24
- export declare const ChartPopup: ({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, isEnableSort, getUnderlyingData, elementRef, isSingleValueChart, isGaugeChart, setSortOrder, isInavlidForSort, clientColumnType, isAllowedToSeeUnderlyingData, }: ChartPopupProps) => React.JSX.Element;
25
- declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, isEnableSort, getUnderlyingData, elementRef, isSingleValueChart, isGaugeChart, setSortOrder, isInavlidForSort, clientColumnType, isAllowedToSeeUnderlyingData, }: ChartPopupProps) => React.JSX.Element>;
26
+ export declare const ChartPopup: ({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, isEnableSort, getUnderlyingData, elementRef, isSingleValueChart, isGaugeChart, setSortOrder, isInavlidForSort, clientColumnType, isAllowedToSeeUnderlyingData, rawCsvDownloadButtonProps, }: ChartPopupProps) => React.JSX.Element;
27
+ declare const _default: React.MemoExoticComponent<({ position, menuContainerClass, menuClass, isOpen, setOpen, value, columnName, isEnableSort, getUnderlyingData, elementRef, isSingleValueChart, isGaugeChart, setSortOrder, isInavlidForSort, clientColumnType, isAllowedToSeeUnderlyingData, rawCsvDownloadButtonProps, }: ChartPopupProps) => React.JSX.Element>;
26
28
  export default _default;
@@ -17,16 +17,21 @@ export type CsvDownloadMetricReqData = {
17
17
  clientId?: string;
18
18
  };
19
19
  };
20
- type RawCsvDownloadButtonProps = {
20
+ export type UnderlyingDataConfig = {
21
+ isEnable: boolean;
22
+ column: string;
23
+ value: any;
24
+ };
25
+ export type RawCsvDownloadButtonProps = {
21
26
  fileName: string;
22
- companyIntegrationId: string;
23
- integrationName: string;
27
+ companyIntegrationId?: string;
28
+ integrationName?: string;
24
29
  metricData: CsvDownloadMetricReqData;
25
30
  className?: string;
26
31
  children?: React.ReactNode;
27
32
  updateDownloadProgress: (isEnable: boolean) => void;
28
33
  isPythonMode: boolean;
29
34
  data: Record<string, any>[];
35
+ underlyingData?: UnderlyingDataConfig;
30
36
  };
31
- export declare const RawCsvDownloadButton: ({ fileName, metricData, className, children, updateDownloadProgress, isPythonMode, data, }: RawCsvDownloadButtonProps) => React.JSX.Element;
32
- export {};
37
+ export declare const RawCsvDownloadButton: ({ fileName, metricData, className, children, updateDownloadProgress, isPythonMode, data, underlyingData, }: RawCsvDownloadButtonProps) => React.JSX.Element;