@databrainhq/plugin 0.9.46 → 0.9.48
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.
- package/dist/components/Chart/SingleValueChart.d.ts +2 -1
- package/dist/components/MetricList/components/ArchiveMetricModal/index.d.ts +4 -6
- package/dist/components/MetricList/components/LayoutAlert/index.d.ts +2 -1
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useArchiveMetric.d.ts +11 -0
- package/dist/hooks/useClientDashboardLayout.d.ts +1 -0
- package/dist/hooks/useMetricCard.d.ts +1 -0
- package/dist/index.es.js +19446 -19671
- package/dist/index.umd.js +154 -154
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +13 -5
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ export type SingleValueChartProps = {
|
|
|
11
11
|
hideBorder?: boolean;
|
|
12
12
|
chartClickConfig?: ClickActionsConfig['chart'];
|
|
13
13
|
className?: string;
|
|
14
|
+
onChartReady?: () => void;
|
|
14
15
|
};
|
|
15
|
-
declare const _default: React.MemoExoticComponent<({ value, settings, chartClickConfig, hideBorder, className, }: SingleValueChartProps) => JSX.Element>;
|
|
16
|
+
declare const _default: React.MemoExoticComponent<({ value, settings, chartClickConfig, hideBorder, className, onChartReady, }: SingleValueChartProps) => JSX.Element>;
|
|
16
17
|
export default _default;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ModalProps } from '@/components/Modal';
|
|
3
3
|
export interface ArchiveMetricModalProps extends Omit<ModalProps, 'headerTitle'> {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
dashboardId: string;
|
|
7
|
-
clientId: string;
|
|
4
|
+
onArchive: () => void;
|
|
5
|
+
isLoading: boolean;
|
|
8
6
|
}
|
|
9
|
-
export declare const ArchiveMetricModal:
|
|
7
|
+
export declare const ArchiveMetricModal: ({ isOpen, onClose, onArchive, isLoading, }: ArchiveMetricModalProps) => JSX.Element;
|
|
@@ -2,5 +2,6 @@
|
|
|
2
2
|
export type LayoutAlertProps = {
|
|
3
3
|
onCancel: () => void;
|
|
4
4
|
onSave: () => void;
|
|
5
|
+
isLoading: boolean;
|
|
5
6
|
};
|
|
6
|
-
export declare const LayoutAlert: ({ onCancel, onSave }: LayoutAlertProps) => JSX.Element;
|
|
7
|
+
export declare const LayoutAlert: ({ onCancel, onSave, isLoading, }: LayoutAlertProps) => JSX.Element;
|
|
@@ -9,6 +9,7 @@ type Props = {
|
|
|
9
9
|
tableName?: string;
|
|
10
10
|
className?: string;
|
|
11
11
|
onColumnSizingChange?: OnChangeFn<ColumnSizingState>;
|
|
12
|
+
onChartReady?: () => void;
|
|
12
13
|
};
|
|
13
|
-
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, }: Props) => JSX.Element;
|
|
14
|
+
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, onColumnSizingChange, onChartReady, }: Props) => JSX.Element;
|
|
14
15
|
export {};
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type UseArchiveMetricProps = {
|
|
2
|
+
dashboardId: string;
|
|
3
|
+
clientId: string;
|
|
4
|
+
metricId: string;
|
|
5
|
+
onSuccess: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const useArchiveMetric: ({ dashboardId, clientId, metricId, onSuccess, }: UseArchiveMetricProps) => {
|
|
8
|
+
handleArchiveMetric: () => Promise<void>;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -30,6 +30,7 @@ export declare const useMetricCard: ({ metric, globalFilters, rlsFilters, client
|
|
|
30
30
|
columnName: string | undefined;
|
|
31
31
|
chartParams: any;
|
|
32
32
|
isQueryLoading: boolean;
|
|
33
|
+
setLoading: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
33
34
|
groupedData: Record<string, any>[];
|
|
34
35
|
drilledLevel: number;
|
|
35
36
|
rlsConditions: RlsCondition[];
|