@devtable/dashboard 13.31.2 → 13.32.0

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 @@
1
+ export * from './stats-around-viz';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { VizViewContext } from '../../../../types/plugin';
3
+ type Props = {
4
+ value: string;
5
+ context: VizViewContext;
6
+ };
7
+ export declare const StatsAroundViz: import('./react').ForwardRefExoticComponent<Props & import('./react').RefAttributes<HTMLDivElement>>;
8
+ export {};
@@ -1,8 +1,8 @@
1
1
  import { Control, UseFormWatch } from 'react-hook-form';
2
2
  import { ICartesianChartConf } from '../../type';
3
- interface IVariablesField {
3
+ type Props = {
4
4
  control: Control<ICartesianChartConf, $TSFixMe>;
5
5
  watch: UseFormWatch<ICartesianChartConf>;
6
- }
7
- export declare function StatsField({ control, watch }: IVariablesField): import('./react/jsx-runtime').JSX.Element;
6
+ };
7
+ export declare function StatsField({ control, watch }: Props): import('./react/jsx-runtime').JSX.Element;
8
8
  export {};
@@ -2,6 +2,6 @@ import { VersionBasedMigrator } from '../../../../components/plugins/plugin-data
2
2
  import { VizComponent } from '../../../../types/plugin';
3
3
  export declare class VizCartesianMigrator extends VersionBasedMigrator {
4
4
  configVersions(): void;
5
- readonly VERSION = 19;
5
+ readonly VERSION = 20;
6
6
  }
7
7
  export declare const CartesianVizComponent: VizComponent;
@@ -2,6 +2,7 @@ import { IMigrationEnv } from '../../../../../components/plugins';
2
2
  import { AnyObject } from '../../../../../types';
3
3
  import { ITemplateVariable } from '../../../../../utils';
4
4
  import { ICartesianChartConf } from '../type';
5
+ import { PanelModelInstance } from '../../../../../dashboard-editor';
5
6
  export declare function updateSchema2(legacyConf: ICartesianChartConf & {
6
7
  variables: ITemplateVariable[];
7
8
  }): AnyObject;
@@ -22,3 +23,4 @@ export declare function v16(legacyConf: any): ICartesianChartConf;
22
23
  export declare function v17(legacyConf: any): ICartesianChartConf;
23
24
  export declare function v18(legacyConf: any, { panelModel }: IMigrationEnv): ICartesianChartConf;
24
25
  export declare function v19(legacyConf: any): ICartesianChartConf;
26
+ export declare function v20(legacyConf: $TSFixMe, panelModel: PanelModelInstance): ICartesianChartConf;
@@ -89,10 +89,8 @@ export interface ICartesianChartConf {
89
89
  series: ICartesianChartSeriesItem[];
90
90
  regressions: IRegressionConf[];
91
91
  stats: {
92
- templates: {
93
- top: string;
94
- bottom: string;
95
- };
92
+ top: string;
93
+ bottom: string;
96
94
  };
97
95
  tooltip: {
98
96
  metrics: IEchartsTooltipMetric[];
@@ -1,2 +1,4 @@
1
1
  import { VizViewProps } from '../../../../types/plugin';
2
- export declare function VizCartesianChart({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element;
2
+ export declare const VizCartesianChart: (({ context, instance }: VizViewProps) => import('./react/jsx-runtime').JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -1,2 +1,2 @@
1
1
  import { VizConfigProps } from '../../../../types/plugin';
2
- export declare function VizCartesianEditor({ context }: VizConfigProps): import('./react/jsx-runtime').JSX.Element;
2
+ export declare function VizCartesianEditor(props: VizConfigProps): import('./react/jsx-runtime').JSX.Element | null;
@@ -1,8 +1,8 @@
1
1
  import { Control, UseFormWatch } from 'react-hook-form';
2
2
  import { IScatterChartConf } from '../../type';
3
- interface IVariablesField {
3
+ type Props = {
4
4
  control: Control<IScatterChartConf, $TSFixMe>;
5
5
  watch: UseFormWatch<IScatterChartConf>;
6
- }
7
- export declare function StatsField({ control, watch }: IVariablesField): import('./react/jsx-runtime').JSX.Element;
6
+ };
7
+ export declare function StatsField({ control, watch }: Props): import('./react/jsx-runtime').JSX.Element;
8
8
  export {};
@@ -0,0 +1,5 @@
1
+ import { VersionBasedMigrator } from '../../../../../components/plugins/plugin-data-migrator';
2
+ export declare class VizScatterChartMigrator extends VersionBasedMigrator {
3
+ configVersions(): void;
4
+ readonly VERSION = 11;
5
+ }
@@ -31,10 +31,8 @@ export interface IScatterChartConf {
31
31
  label_overflow: IScatterLabelOverflow;
32
32
  };
33
33
  stats: {
34
- templates: {
35
- top: string;
36
- bottom: string;
37
- };
34
+ top: string;
35
+ bottom: string;
38
36
  };
39
37
  tooltip: {
40
38
  trigger: 'item' | 'axis' | 'none';
@@ -1,2 +1,2 @@
1
1
  import { VizConfigProps } from '../../../../types/plugin';
2
- export declare function VizScatterChartEditor({ context }: VizConfigProps): import('./react/jsx-runtime').JSX.Element;
2
+ export declare function VizScatterChartEditor(props: VizConfigProps): import('./react/jsx-runtime').JSX.Element | null;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Sx } from '@mantine/core';
2
3
  import { RichTextEditorProps } from '@mantine/tiptap';
3
4
  import { TDashboardState, VariableAggValueMap } from '../../../model';
@@ -8,5 +9,5 @@ interface IReadonlyRichText {
8
9
  dashboardState?: TDashboardState;
9
10
  variableAggValueMap?: VariableAggValueMap;
10
11
  }
11
- export declare const ReadonlyRichText: ({ value, styles, sx, dashboardState, variableAggValueMap, }: IReadonlyRichText) => import('./react/jsx-runtime').JSX.Element;
12
+ export declare const ReadonlyRichText: import('./react').ForwardRefExoticComponent<IReadonlyRichText & import('./react').RefAttributes<HTMLDivElement>>;
12
13
  export {};