@databrainhq/plugin 0.8.23 → 0.8.25
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/Alert/index.d.ts +7 -0
- package/dist/components/MetricList/MetricList.d.ts +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/hooks/useClientDashboardLayout.d.ts +1 -2
- package/dist/hooks/useEmbeddedDashboard.d.ts +2 -1
- package/dist/index.es.js +776 -815
- package/dist/index.umd.js +111 -128
- package/dist/style.css +1 -1
- package/dist/typings.d.ts +17 -17
- package/dist/utils/generated/graphql.d.ts +562 -61
- 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)
|
|
@@ -9,6 +9,8 @@ export declare type ExternalMetricListProps = {
|
|
|
9
9
|
client: ClientType['value'];
|
|
10
10
|
companyId: string;
|
|
11
11
|
isAllowedToDeleteMetrics?: boolean;
|
|
12
|
+
isAllowedToUpdateMetrics?: boolean;
|
|
13
|
+
isAllowedToChangeLayout?: boolean;
|
|
12
14
|
isLiveMode: boolean;
|
|
13
15
|
isMetricListLoading?: boolean;
|
|
14
16
|
breakpoint: ThemeType['breakpoint'];
|
|
@@ -36,7 +38,6 @@ export declare type ExternalMetricListProps = {
|
|
|
36
38
|
name: string;
|
|
37
39
|
outputColumns?: string | null;
|
|
38
40
|
query: string;
|
|
39
|
-
resizeAttributes: any;
|
|
40
41
|
timeGrain?: string | null;
|
|
41
42
|
updatedAt: any;
|
|
42
43
|
};
|
|
@@ -6,6 +6,5 @@ export declare type UseClientDashboardLayoutProps = {
|
|
|
6
6
|
export declare const useClientDashboardLayout: ({ externalDashboardId, clientId, }: UseClientDashboardLayoutProps) => {
|
|
7
7
|
saveLayout: (newLayout: Layout[]) => Promise<void>;
|
|
8
8
|
layout: Layout[];
|
|
9
|
-
|
|
10
|
-
isLayoutChanged: boolean;
|
|
9
|
+
isLayoutLocked: boolean;
|
|
11
10
|
};
|
|
@@ -27,7 +27,6 @@ export declare const useEmbeddedDashboard: (token: string) => {
|
|
|
27
27
|
name: string;
|
|
28
28
|
outputColumns?: string | null | undefined;
|
|
29
29
|
query: string;
|
|
30
|
-
resizeAttributes: any;
|
|
31
30
|
timeGrain?: string | null | undefined;
|
|
32
31
|
updatedAt: any;
|
|
33
32
|
selectedGroupBy: any;
|
|
@@ -52,6 +51,8 @@ export declare const useEmbeddedDashboard: (token: string) => {
|
|
|
52
51
|
companyTenancyType: any;
|
|
53
52
|
isAllowedToCreateMetrics: boolean;
|
|
54
53
|
isAllowedToDeleteMetrics: boolean;
|
|
54
|
+
isAllowedToUpdateMetrics: boolean;
|
|
55
|
+
isAllowedToChangeLayout: boolean;
|
|
55
56
|
workspace: any;
|
|
56
57
|
};
|
|
57
58
|
};
|