@databrainhq/plugin 0.9.47 → 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/MetricList/components/ArchiveMetricModal/index.d.ts +4 -6
- package/dist/components/MetricList/components/LayoutAlert/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/index.es.js +18207 -18440
- package/dist/index.umd.js +149 -149
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +13 -5
- package/package.json +1 -1
|
@@ -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;
|
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 {};
|