@databrainhq/plugin 0.9.25 → 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 CHANGED
@@ -1,26 +1,26 @@
1
- # @databrainhq/plugin
2
-
3
- > Databrain app ui plugin.
4
-
5
- [![NPM](https://img.shields.io/npm/v/@databrainhq/plugin.svg)](https://www.npmjs.com/package/@databrainhq/plugin) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](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
+ [![NPM](https://img.shields.io/npm/v/@databrainhq/plugin.svg)](https://www.npmjs.com/package/@databrainhq/plugin) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](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)
@@ -21,5 +21,6 @@ export type ExternalMetricListProps = {
21
21
  companyTenancyType: string;
22
22
  externalDashboardId: string;
23
23
  externalDashboardPk: string;
24
+ sharingSettingsId?: string;
24
25
  };
25
26
  export declare const ExternalMetricList: React.FC<ExternalMetricListProps>;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
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
- export default DownloadRawCsvModal;
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 TagInputField: ({ control, placeholder, name, label, onChangeTags, defaultTagValue, }: Props) => JSX.Element;
30
- export default TagInputField;
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: (value: boolean) => void, metricItem?: ExternalMetrics, filterValues?: Record<string, string>) => {
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;