@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.
- package/dist/dashboard.es.js +7021 -6989
- package/dist/dashboard.umd.js +73 -73
- package/dist/main/dashboard-editor/index.d.ts +6 -1
- package/dist/model/panels/index.d.ts +1 -1
- package/dist/utils/shallow-to-js.d.ts +1 -0
- package/package.json +1 -1
|
@@ -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
|
|
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):
|
|
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;
|