@databrainhq/plugin 0.9.5 → 0.9.6
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/README.md +26 -26
- package/dist/components/FloatingDropDown/index.d.ts +3 -1
- package/dist/components/MetricList/MetricList.d.ts +2 -28
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/index.es.js +549 -431
- package/dist/index.umd.js +97 -97
- package/dist/style.css +1 -1
- package/dist/typings.d.ts +17 -17
- package/package.json +96 -96
package/README.md
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
# @databrainhq/plugin
|
|
2
|
-
|
|
3
|
-
> Databrain app ui plugin.
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/@databrainhq/plugin) [](https://standardjs.com)
|
|
6
|
-
|
|
7
|
-
## Install
|
|
8
|
-
|
|
9
|
-
```bash
|
|
10
|
-
npm install @databrainhq/plugin
|
|
11
|
-
```
|
|
12
|
-
|
|
13
|
-
## Usage
|
|
14
|
-
|
|
15
|
-
```tsx
|
|
16
|
-
import { Dashboard } from '@databrainhq/plugin';
|
|
17
|
-
import '@databrainhq/plugin/dist/style.css';
|
|
18
|
-
|
|
19
|
-
const Example = () => {
|
|
20
|
-
return <Dashboard token={/* Your Guest Token */} />;
|
|
21
|
-
};
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
## License
|
|
25
|
-
|
|
26
|
-
MIT © [databrainhq](https://github.com/databrainhq)
|
|
1
|
+
# @databrainhq/plugin
|
|
2
|
+
|
|
3
|
+
> Databrain app ui plugin.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@databrainhq/plugin) [](https://standardjs.com)
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @databrainhq/plugin
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```tsx
|
|
16
|
+
import { Dashboard } from '@databrainhq/plugin';
|
|
17
|
+
import '@databrainhq/plugin/dist/style.css';
|
|
18
|
+
|
|
19
|
+
const Example = () => {
|
|
20
|
+
return <Dashboard token={/* Your Guest Token */} />;
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
MIT © [databrainhq](https://github.com/databrainhq)
|
|
@@ -5,6 +5,7 @@ export declare type FloatingDropDownProps = {
|
|
|
5
5
|
selectedOption: FloatingDropDownOption;
|
|
6
6
|
options: FloatingDropDownOption[];
|
|
7
7
|
className?: string;
|
|
8
|
+
buttonClass?: string;
|
|
8
9
|
label?: string;
|
|
9
10
|
labelVariant?: 'floating' | 'static';
|
|
10
11
|
isDisabled?: boolean;
|
|
@@ -14,8 +15,9 @@ export declare type FloatingDropDownProps = {
|
|
|
14
15
|
closeControl?: {
|
|
15
16
|
close: boolean;
|
|
16
17
|
};
|
|
18
|
+
dropdownAbove?: boolean;
|
|
17
19
|
};
|
|
18
|
-
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, options, isDisabled, children, icon, isSearchEnabled, closeControl, }: FloatingDropDownProps) => JSX.Element;
|
|
20
|
+
export declare const FloatingDropDown: ({ label, labelVariant, selectedOption, onChange, className, buttonClass, options, isDisabled, children, icon, isSearchEnabled, closeControl, dropdownAbove, }: FloatingDropDownProps) => JSX.Element;
|
|
19
21
|
export declare type MultiFloatingDropDownProps = Omit<FloatingDropDownProps, 'selectedOption' | 'onChange'> & {
|
|
20
22
|
selectedOptions: FloatingDropDownOption[];
|
|
21
23
|
onChange: (options: FloatingDropDownOption[]) => void;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { MetricCardProps } from './components/MetricCard';
|
|
3
3
|
import { ClientType } from '@/types/app';
|
|
4
4
|
import { ThemeType } from '@/utils/theme';
|
|
5
|
+
import { EmbeddedDashboardMetricsQuery } from '@/utils/generated/graphql';
|
|
5
6
|
export declare const GridLayout: React.ComponentClass<import("react-grid-layout").ResponsiveProps & import("react-grid-layout").WidthProviderProps, any>;
|
|
6
7
|
export declare type ExternalMetricListProps = {
|
|
7
8
|
chartColors?: string[];
|
|
@@ -15,34 +16,7 @@ export declare type ExternalMetricListProps = {
|
|
|
15
16
|
isMetricListLoading?: boolean;
|
|
16
17
|
breakpoint: ThemeType['breakpoint'];
|
|
17
18
|
layoutCols: ThemeType['metricLayoutCols'];
|
|
18
|
-
externalDashboardMetrics?:
|
|
19
|
-
__typename?: 'externalDashboardMetrics';
|
|
20
|
-
externalMetricId: any;
|
|
21
|
-
externalDashboardId: any;
|
|
22
|
-
externalMetric: {
|
|
23
|
-
__typename?: 'externalMetrics';
|
|
24
|
-
chartOptions: any;
|
|
25
|
-
clientId?: string | null;
|
|
26
|
-
companyId: any;
|
|
27
|
-
companyIntegrationId: any;
|
|
28
|
-
createdAt: any;
|
|
29
|
-
createdBy?: string | null;
|
|
30
|
-
description: string;
|
|
31
|
-
id: any;
|
|
32
|
-
inputFields?: any | null;
|
|
33
|
-
integrationName: string;
|
|
34
|
-
isCreatedByClient: boolean;
|
|
35
|
-
isLive: boolean;
|
|
36
|
-
metricId: string;
|
|
37
|
-
metricQuery?: string | null;
|
|
38
|
-
name: string;
|
|
39
|
-
outputColumns?: string | null;
|
|
40
|
-
query: string;
|
|
41
|
-
timeGrain?: string | null;
|
|
42
|
-
updatedAt: any;
|
|
43
|
-
resizeAttributes: any;
|
|
44
|
-
};
|
|
45
|
-
}[] | undefined;
|
|
19
|
+
externalDashboardMetrics?: EmbeddedDashboardMetricsQuery['externalDashboardMetrics'];
|
|
46
20
|
params?: any;
|
|
47
21
|
companyTenancyType: string;
|
|
48
22
|
externalDashboardId: string;
|
|
@@ -6,6 +6,7 @@ declare type Props = {
|
|
|
6
6
|
error: string;
|
|
7
7
|
tableSettings?: TableSettings;
|
|
8
8
|
tableName?: string;
|
|
9
|
+
className?: string;
|
|
9
10
|
};
|
|
10
|
-
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, }: Props) => JSX.Element;
|
|
11
|
+
export declare const Table: ({ data, isLoading, error, tableSettings, tableName, className, }: Props) => JSX.Element;
|
|
11
12
|
export {};
|