@databrainhq/plugin 0.14.7 → 0.14.9

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.
@@ -0,0 +1,14 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ import { ThemeType } from '@/utils';
3
+ export interface CreateEmbedMetricProps extends HTMLAttributes<HTMLElement> {
4
+ token: string;
5
+ dashboardId?: string;
6
+ options?: {
7
+ disableMetricCreation?: boolean;
8
+ disableMetricUpdation?: boolean;
9
+ disableMetricDeletion?: boolean;
10
+ chartColors?: string[];
11
+ };
12
+ theme?: ThemeType;
13
+ }
14
+ export declare const CreateEmbeddedMetric: ({ options }: CreateEmbedMetricProps) => React.JSX.Element;
@@ -1,14 +1,3 @@
1
- import React, { HTMLAttributes } from 'react';
2
- import { ThemeType } from '@/utils';
3
- export interface CreateEmbeddedMetricProps extends HTMLAttributes<HTMLElement> {
4
- token: string;
5
- dashboardId?: string;
6
- options?: {
7
- disableMetricCreation?: boolean;
8
- disableMetricUpdation?: boolean;
9
- disableMetricDeletion?: boolean;
10
- chartColors?: string[];
11
- };
12
- theme?: ThemeType;
13
- }
14
- export declare const CreateEmbeddedMetric: (props: CreateEmbeddedMetricProps) => React.JSX.Element;
1
+ import React from 'react';
2
+ import { CreateEmbedMetricProps } from './CreateEmbeddedMetric';
3
+ export declare const CreateEmbedMetric: (props: CreateEmbedMetricProps) => React.JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { DashboardProps } from './containers/Dashboard';
2
2
  import { Chart, ChartProps } from './components';
3
3
  import { MetricProps } from './containers/Metric';
4
- import { CreateEmbeddedMetricProps } from './containers/CreateMetric';
4
+ import { CreateEmbedMetricProps } from './containers/CreateMetric/CreateEmbeddedMetric';
5
5
  export type { CustomSettings, TableSettings, MarginSettings, AxisSettings, LegendSettings, LabelSettings, BackgroundSettings, PivotSettingsType, GaugeSettingsType, ChartSettingsType, TimeSeriesSettingsType, MetricFilterOptionsType, DateTypeOptionType, } from '@/types';
6
6
  export declare namespace JSX {
7
7
  interface IntrinsicElements {
@@ -9,8 +9,8 @@ export declare namespace JSX {
9
9
  'dbn-dashboard': DashboardProps;
10
10
  'dbn-metric': MetricProps;
11
11
  'dbn-chart': ChartProps;
12
- 'dbn-create-metric': CreateEmbeddedMetricProps;
12
+ 'dbn-create-metric': CreateEmbedMetricProps;
13
13
  }
14
14
  }
15
- export type { DashboardProps, MetricProps, ChartProps, CreateEmbeddedMetricProps, };
15
+ export type { DashboardProps, MetricProps, ChartProps, CreateEmbedMetricProps };
16
16
  export { Chart };