@devtable/dashboard 14.8.0 → 14.9.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,6 +1,6 @@
1
1
  import React from './react';
2
- import { IConfigComponentProps, IViewComponentProps } from '../plugins/viz-manager/components';
3
2
  import { IVizConfig } from '../../types';
3
+ import { IConfigComponentProps, IViewComponentProps } from '../plugins/viz-manager/components';
4
4
  type SetVizConfType = {
5
5
  setVizConf: (val: React.SetStateAction<IVizConfig['conf']>) => void;
6
6
  };
@@ -3,3 +3,4 @@ export * from './plugin-context';
3
3
  export * from './plugin-data-migrator';
4
4
  export * from './hooks';
5
5
  export * from './color-manager';
6
+ export { onVizRendered, notifyVizRendered } from './viz-components/viz-instance-api';
@@ -1,2 +1,2 @@
1
1
  import { VizViewProps } from '../../../../types/plugin';
2
- export declare function VizBar3dChart({ context }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
2
+ export declare function VizBar3dChart({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
@@ -1,2 +1,2 @@
1
1
  import { VizViewProps } from '../../../../types/plugin';
2
- export declare function VizFunnelChart({ context }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
2
+ export declare function VizFunnelChart({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
@@ -1,2 +1,2 @@
1
1
  import { VizViewProps } from '../../../../types/plugin';
2
- export declare function VizMericoEstimationChart({ context }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
2
+ export declare function VizMericoEstimationChart({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
@@ -1,2 +1,2 @@
1
1
  import { VizViewProps } from '../../../../types/plugin';
2
- export declare function VizRegressionChart({ context }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
2
+ export declare function VizRegressionChart({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
@@ -1,2 +1,2 @@
1
1
  import { VizViewProps } from '../../../../types/plugin';
2
- export declare function VizSunburst({ context }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
2
+ export declare function VizSunburst({ context, instance }: VizViewProps): import('./react/jsx-runtime').JSX.Element | null;
@@ -0,0 +1,17 @@
1
+ import { VizInstance } from '../../../types/plugin';
2
+ import { IPanelInfo } from '../../../components/plugins';
3
+ /**
4
+ * Emit viz rendered event
5
+ * @param instance
6
+ * @param data
7
+ */
8
+ export declare function notifyVizRendered(instance: VizInstance, data: unknown): void;
9
+ export interface IVizRenderedPayload {
10
+ panel: IPanelInfo;
11
+ }
12
+ /**
13
+ * Subscribe to viz rendered event of a viz instance
14
+ * @param instance
15
+ * @param callback
16
+ */
17
+ export declare function onVizRendered(instance: VizInstance, callback: (data: unknown) => void): () => void;