@databrainhq/plugin 0.8.1 → 0.8.2
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/MetricCreation.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/MetricOutput.d.ts +1 -1
- package/dist/components/MetricCreation/components/MetricOutput/components/ChartTab/index.d.ts +2 -1
- package/dist/components/MetricList/MetricList.d.ts +1 -0
- package/dist/components/MetricList/components/DeleteMetricModal.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useApplyAdminTheme.d.ts +2 -0
- package/dist/hooks/useEmbeddedDashboard.d.ts +1 -0
- package/dist/index.es.js +225 -261
- package/dist/index.umd.js +92 -60
- package/dist/style.css +1 -1
- package/dist/types/metricCreate.d.ts +2 -0
- package/dist/utils/generated/graphql.d.ts +2 -2
- package/package.json +1 -1
- package/dist/contexts/globalTheme.d.ts +0 -9
|
@@ -11,6 +11,7 @@ export declare type EmbeddedMetricCreationProps = {
|
|
|
11
11
|
mode: boolean;
|
|
12
12
|
externalDashboardId: string;
|
|
13
13
|
variant?: 'static' | 'floating';
|
|
14
|
+
chartColors?: string[];
|
|
14
15
|
};
|
|
15
16
|
export declare type HeaderProps = {
|
|
16
17
|
Heading: string;
|
|
@@ -111,6 +112,7 @@ export declare type MetricOutputProps = {
|
|
|
111
112
|
tab: JSX.Element;
|
|
112
113
|
tabContent: JSX.Element;
|
|
113
114
|
}[];
|
|
115
|
+
chartColors?: string[];
|
|
114
116
|
};
|
|
115
117
|
export declare type CompanyIntegration = {
|
|
116
118
|
id: string;
|
|
@@ -1661,7 +1661,7 @@ export declare type CompanySubsetTableDataMutation = {
|
|
|
1661
1661
|
} | null;
|
|
1662
1662
|
};
|
|
1663
1663
|
export declare type EmbeddedDashboardMetricsQueryVariables = Exact<{
|
|
1664
|
-
|
|
1664
|
+
externalDashboardId?: Scalars['String'];
|
|
1665
1665
|
}>;
|
|
1666
1666
|
export declare type EmbeddedDashboardMetricsQuery = {
|
|
1667
1667
|
__typename?: 'query_root';
|
|
@@ -1923,7 +1923,7 @@ export declare const useCompanySubsetTableDataMutation: <TError = unknown, TCont
|
|
|
1923
1923
|
clientId?: InputMaybe<string> | undefined;
|
|
1924
1924
|
companyId?: InputMaybe<string> | undefined;
|
|
1925
1925
|
}>, TContext>;
|
|
1926
|
-
export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($
|
|
1926
|
+
export declare const EmbeddedDashboardMetricsDocument = "\n query EmbeddedDashboardMetrics($externalDashboardId: String! = \"\") {\n externalDashboardMetrics(\n where: {externalDashboard: {externalDashboardId: {_eq: $externalDashboardId}}, externalMetric: {isMarkedDeleted: {_eq: false}}}\n ) {\n externalMetricId\n externalDashboardId\n externalMetric {\n chartOptions\n clientId\n companyId\n companyIntegrationId\n createdAt\n createdBy\n description\n id\n inputFields\n integrationName\n isCreatedByClient\n isLive\n metricId\n metricQuery\n name\n outputColumns\n query\n resizeAttributes\n timeGrain\n updatedAt\n selectedGroupBy\n isEnableGroupBy\n groupBy\n rlsConditions\n companyIntegration {\n name\n }\n clickActions\n }\n }\n}\n ";
|
|
1927
1927
|
export declare const useEmbeddedDashboardMetricsQuery: <TData = EmbeddedDashboardMetricsQuery, TError = unknown>(variables?: EmbeddedDashboardMetricsQueryVariables, options?: UseQueryOptions<EmbeddedDashboardMetricsQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
|
1928
1928
|
export declare const GetExternalDashboardClientThemeDocument = "\n query GetExternalDashboardClientTheme($companyId: uuid!, $clientId: String!) {\n externalDashboardThemes(\n where: {companyId: {_eq: $companyId}, externalDashboardThemeClients: {clientId: {_eq: $clientId}}}\n limit: 1\n ) {\n colors\n createdAt\n id\n name\n }\n}\n ";
|
|
1929
1929
|
export declare const useGetExternalDashboardClientThemeQuery: <TData = GetExternalDashboardClientThemeQuery, TError = unknown>(variables: GetExternalDashboardClientThemeQueryVariables, options?: UseQueryOptions<GetExternalDashboardClientThemeQuery, TError, TData, import("react-query").QueryKey> | undefined) => import("react-query").UseQueryResult<TData, TError>;
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { Themes } from '@/utils/generated/graphql';
|
|
3
|
-
interface ThemeContextType {
|
|
4
|
-
globalTheme?: Themes;
|
|
5
|
-
setGlobalTheme: React.Dispatch<React.SetStateAction<ThemeContextType['globalTheme']>>;
|
|
6
|
-
}
|
|
7
|
-
export declare const useGlobalTheme: () => ThemeContextType;
|
|
8
|
-
export declare const GlobalThemeProvider: React.FC<PropsWithChildren>;
|
|
9
|
-
export {};
|