@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.
@@ -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
- where?: InputMaybe<ExternalDashboardMetrics_Bool_Exp>;
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($where: externalDashboardMetrics_bool_exp) {\n externalDashboardMetrics(where: $where) {\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 ";
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@databrainhq/plugin",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "Databrain app dashboard ui plugin.",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -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 {};