@devtable/dashboard 7.20.0 → 7.20.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.
@@ -4,6 +4,8 @@ interface ICustomRichTextEditor {
4
4
  value: string;
5
5
  onChange: (v: string) => void;
6
6
  styles?: RichTextEditorProps['styles'];
7
+ label: string;
8
+ onSubmit?: () => void;
7
9
  }
8
10
  export declare const CustomRichTextEditor: import("react").ForwardRefExoticComponent<ICustomRichTextEditor & import("react").RefAttributes<unknown>>;
9
11
  export {};
@@ -1,4 +1,3 @@
1
1
  export * from './dashboard';
2
2
  export * from './filter';
3
- export * from './viz-panel';
4
3
  export type { AnyObject, Ready } from './utils';
@@ -7,4 +7,4 @@ export declare type AggregationType = {
7
7
  p: number;
8
8
  };
9
9
  };
10
- export declare function aggregateValue(data: Record<string, number>[], data_field: string, aggregation: AggregationType): number;
10
+ export declare function aggregateValue(data: Record<string, number>[], data_field: string, aggregation: AggregationType): number | number[] | null;
@@ -1,4 +1,4 @@
1
1
  import { ITemplateVariable } from './types';
2
2
  export declare function getNonStatsDataText(data: $TSFixMe): any;
3
- export declare function getAggregatedValue({ data_field, aggregation }: ITemplateVariable, data: Record<string, number>[]): number;
4
- export declare function formatAggregatedValue({ formatter }: ITemplateVariable, value: number | string): any;
3
+ export declare function getAggregatedValue({ data_field, aggregation }: ITemplateVariable, data: Record<string, number>[]): number | number[] | null;
4
+ export declare function formatAggregatedValue({ formatter }: ITemplateVariable, value: number | string | number[] | null): any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "7.20.0",
3
+ "version": "7.20.2",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -1,6 +0,0 @@
1
- import { IVizConfig } from './dashboard';
2
- export interface IVizPanelProps {
3
- conf: IVizConfig['conf'];
4
- setConf: (conf: IVizConfig['conf']) => void;
5
- data: $TSFixMe[];
6
- }