@databrainhq/plugin 0.9.26 → 0.9.27
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/MetricList/MetricList.d.ts +1 -0
- package/dist/components/MetricList/components/DownloadRawCsvModal/index.d.ts +5 -3
- package/dist/components/MetricList/components/FullScreenView/index.d.ts +2 -1
- package/dist/components/TagInputField/index.d.ts +2 -2
- package/dist/hooks/useDownloadRawCsv.d.ts +14 -1
- package/dist/index.es.js +13248 -13171
- package/dist/index.umd.js +148 -139
- package/dist/style.css +1 -1
- package/dist/utils/generated/graphql.d.ts +62 -3
- package/package.json +110 -110
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)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { ExternalMetrics } from '@/utils/generated/graphql';
|
|
3
3
|
type Props = {
|
|
4
4
|
onCloseModal: (value: boolean) => void;
|
|
@@ -7,6 +7,8 @@ type Props = {
|
|
|
7
7
|
client: string;
|
|
8
8
|
companyTenancyType: string;
|
|
9
9
|
filterValues?: Record<string, string>;
|
|
10
|
+
sharingSettingsId?: string;
|
|
10
11
|
};
|
|
11
|
-
export declare const DownloadRawCsvModal: ({ onCloseModal, isShowRawCsvModal, metricItem, client, companyTenancyType, filterValues, }: Props) => JSX.Element;
|
|
12
|
-
|
|
12
|
+
export declare const DownloadRawCsvModal: ({ onCloseModal, isShowRawCsvModal, metricItem, client, companyTenancyType, filterValues, sharingSettingsId, }: Props) => JSX.Element;
|
|
13
|
+
declare const _default: React.MemoExoticComponent<({ onCloseModal, isShowRawCsvModal, metricItem, client, companyTenancyType, filterValues, sharingSettingsId, }: Props) => JSX.Element>;
|
|
14
|
+
export default _default;
|
|
@@ -14,5 +14,6 @@ export type FullScreenViewProps = {
|
|
|
14
14
|
userProvidedDashboardId: string;
|
|
15
15
|
companyId: string;
|
|
16
16
|
isAllowedToUpdateMetrics?: boolean;
|
|
17
|
+
sharingSettingsId?: string;
|
|
17
18
|
};
|
|
18
|
-
export declare const FullScreenView: ({ metric, colors, rlsFilters, onMinimize, clientId, tenancyLevel, companyId, externalDashboardId, userProvidedDashboardId, isAllowedToUpdateMetrics, }: FullScreenViewProps) => JSX.Element;
|
|
19
|
+
export declare const FullScreenView: ({ metric, colors, rlsFilters, onMinimize, clientId, tenancyLevel, companyId, externalDashboardId, userProvidedDashboardId, isAllowedToUpdateMetrics, sharingSettingsId, }: FullScreenViewProps) => JSX.Element;
|
|
@@ -26,5 +26,5 @@ type Props = {
|
|
|
26
26
|
onChangeTags?: (tags: string[]) => void;
|
|
27
27
|
defaultTagValue?: string[];
|
|
28
28
|
};
|
|
29
|
-
declare const
|
|
30
|
-
export default
|
|
29
|
+
declare const _default: React.MemoExoticComponent<({ control, placeholder, name, label, onChangeTags, defaultTagValue, }: Props) => JSX.Element>;
|
|
30
|
+
export default _default;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { FieldValues } from 'react-hook-form';
|
|
2
2
|
import { ExternalMetrics } from '@/utils/generated/graphql';
|
|
3
|
-
declare const useDownloadRawCsv: (onCloseModal
|
|
3
|
+
declare const useDownloadRawCsv: ({ onCloseModal, sharingSettingsId, filterValues, metricItem, }: {
|
|
4
|
+
onCloseModal: (value: boolean) => void;
|
|
5
|
+
metricItem?: ExternalMetrics | undefined;
|
|
6
|
+
filterValues?: Record<string, string> | undefined;
|
|
7
|
+
sharingSettingsId?: string | undefined;
|
|
8
|
+
}) => {
|
|
4
9
|
isLoading: boolean;
|
|
5
10
|
downloadCsvError: string;
|
|
6
11
|
onSubmitDownloadCsv: ({ companyId, sqlQuery, values, clientName, tenancyType, metricName, workspaceId, }: {
|
|
@@ -42,5 +47,13 @@ declare const useDownloadRawCsv: (onCloseModal: (value: boolean) => void, metric
|
|
|
42
47
|
clientName?: string | undefined;
|
|
43
48
|
tenancyType?: string | undefined;
|
|
44
49
|
}) => void;
|
|
50
|
+
setValue: import("react-hook-form").UseFormSetValue<FieldValues>;
|
|
51
|
+
control: import("react-hook-form").Control<FieldValues, object>;
|
|
52
|
+
onSumbitSendCsvUrl: ({ values, clientName, tenancyType, }: {
|
|
53
|
+
values: FieldValues;
|
|
54
|
+
clientName?: string | undefined;
|
|
55
|
+
tenancyType?: string | undefined;
|
|
56
|
+
}) => void;
|
|
57
|
+
isDisableDownloadSettings: boolean;
|
|
45
58
|
};
|
|
46
59
|
export default useDownloadRawCsv;
|