@devtable/dashboard 6.39.0 → 6.41.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.
@@ -1,2 +1,2 @@
1
- import { ITreeDataQueryOption } from '../types';
2
- export declare function queryDataToTree(queryData: ITreeDataQueryOption[]): import("performant-array-to-tree").TreeItem[];
1
+ import { ITreeDataRenderItem } from '../types';
2
+ export declare function queryDataToTree(queryData: ITreeDataRenderItem[]): import("performant-array-to-tree").TreeItem[];
@@ -1,5 +1,13 @@
1
+ /// <reference types="react" />
1
2
  export interface ITreeDataQueryOption {
2
3
  label: string;
3
4
  value: string;
4
5
  parent_value: string;
6
+ description?: string;
7
+ }
8
+ export interface ITreeDataRenderItem {
9
+ label: string | JSX.Element;
10
+ value: string;
11
+ parent_value: string;
12
+ description?: string;
5
13
  }
@@ -0,0 +1,2 @@
1
+ import { Sx } from '@mantine/core';
2
+ export declare const CommonHTMLContentStyle: Sx;
@@ -96,7 +96,10 @@ export interface VizComponent {
96
96
  viewRender: React.ComponentType<VizViewProps>;
97
97
  configRender: React.ComponentType<VizConfigProps>;
98
98
  migrator: IPanelScopeConfigMigrator;
99
- createConfig: () => AnyObject;
99
+ createConfig: () => {
100
+ version: number;
101
+ config: AnyObject;
102
+ };
100
103
  triggers?: ITriggerSchema[];
101
104
  }
102
105
  export interface IPanelScopeConfigMigrator {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "6.39.0",
3
+ "version": "6.41.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",