@devtable/dashboard 8.41.1 → 8.42.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.
@@ -7,6 +7,11 @@ interface IDashboardProps {
7
7
  className?: string;
8
8
  update: (dashboard: IDashboard) => Promise<void>;
9
9
  config: IDashboardConfig;
10
+ onChange?: (dashboard: IDashboard) => void;
10
11
  }
11
- export declare const Dashboard: React.FunctionComponent<IDashboardProps>;
12
+ export interface IDashboardModel {
13
+ readonly json: IDashboard;
14
+ updateCurrent: (dashboard: IDashboard) => void;
15
+ }
16
+ export declare const Dashboard: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<IDashboardProps & React.RefAttributes<IDashboardModel>, "key" | keyof IDashboardProps> & React.RefAttributes<IDashboardModel>>>;
12
17
  export {};
@@ -9758,7 +9758,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
9758
9758
  append(item: PanelModelSnapshotIn): void;
9759
9759
  remove(index: number): void;
9760
9760
  removeByID(id: string): void;
9761
- duplicateByID(id: string): void;
9761
+ duplicateByID(id: string): string | undefined;
9762
9762
  replaceByIndex(index: number, replacement: PanelModelInstance): void;
9763
9763
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
9764
9764
  export declare type PanelsModelInstance = Instance<typeof PanelsModel>;
@@ -0,0 +1 @@
1
+ export declare const shallowToJS: <T>(obj: T) => T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "8.41.1",
3
+ "version": "8.42.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",