@databrainhq/plugin 0.4.7 → 0.5.0
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/MetricCreation/index.d.ts +1 -1
- package/dist/components/MetricList/index.d.ts +4 -1
- package/dist/containers/Dashboard/index.d.ts +7 -0
- package/dist/index.es.js +807 -684
- package/dist/index.umd.js +124 -135
- package/dist/style.css +1 -1
- package/dist/types/metricCreate.d.ts +2 -0
- package/dist/utils/theme.d.ts +87 -0
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { EmbeddedMetricCreationProps } from '@/types/metricCreate';
|
|
2
|
-
declare const EmbeddedMetricCreation: ({ clientId, companyId, mode, externalDashboardId }: EmbeddedMetricCreationProps) => any;
|
|
2
|
+
declare const EmbeddedMetricCreation: ({ clientId, companyId, mode, externalDashboardId, variant }: EmbeddedMetricCreationProps) => any;
|
|
3
3
|
export default EmbeddedMetricCreation;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { MetricCardProps } from '@/components/MetricList/components/MetricCard';
|
|
3
3
|
import { ClientType } from '@/types';
|
|
4
|
+
import { ThemeType } from '@/utils/theme';
|
|
4
5
|
export declare type ExternalMetricListProps = {
|
|
6
|
+
chartColors?: string[];
|
|
5
7
|
globalFilters?: MetricCardProps['globalFilters'];
|
|
6
8
|
client: ClientType['value'];
|
|
7
|
-
company: string;
|
|
8
9
|
isLiveMode?: boolean;
|
|
9
10
|
params?: any;
|
|
10
11
|
isMetricListLoading?: boolean;
|
|
12
|
+
breakpoint: ThemeType['breakpoint'];
|
|
13
|
+
layoutCols: ThemeType['metricLayoutCols'];
|
|
11
14
|
externalDashboardMetrics?: {
|
|
12
15
|
__typename?: 'externalDashboardMetrics';
|
|
13
16
|
externalMetricId: any;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ThemeType } from '@/utils/theme';
|
|
2
3
|
export interface DashboardProps {
|
|
3
4
|
token: string;
|
|
5
|
+
options?: {
|
|
6
|
+
headerVariant?: 'static' | 'floating';
|
|
7
|
+
disableMetricCreation?: boolean;
|
|
8
|
+
chartColors?: string[];
|
|
9
|
+
};
|
|
10
|
+
theme?: ThemeType;
|
|
4
11
|
}
|
|
5
12
|
export declare const Dashboard: React.FC<DashboardProps>;
|