@devtable/dashboard 8.0.0 → 8.1.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.
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface IAddAPanel {
3
+ parentID?: string;
4
+ }
5
+ export declare const AddAPanel: (({ parentID }: IAddAPanel) => JSX.Element | null) & {
6
+ displayName: string;
7
+ };
8
+ export {};
@@ -2,8 +2,9 @@
2
2
  import { NavActionType } from '~/model/editor';
3
3
  interface IAddItemButton {
4
4
  action_type: NavActionType['_action_type'];
5
+ parentID?: string;
5
6
  }
6
- export declare const AddItemButton: (({ action_type }: IAddItemButton) => JSX.Element | null) & {
7
+ export declare const AddItemButton: (({ action_type, parentID }: IAddItemButton) => JSX.Element | null) & {
7
8
  displayName: string;
8
9
  };
9
10
  export {};
@@ -4,7 +4,8 @@ export declare type NavActionType = {
4
4
  label: string;
5
5
  value: string;
6
6
  _type: 'ACTION';
7
- _action_type: '_Add_A_Filter_' | '_Add_A_SQL_SNIPPET_' | '_Add_A_QUERY_' | '_Add_A_VIEW_';
7
+ _action_type: '_Add_A_Filter_' | '_Add_A_SQL_SNIPPET_' | '_Add_A_QUERY_' | '_Add_A_VIEW_' | '_Add_A_PANEL_';
8
+ parentID?: string;
8
9
  Icon: null;
9
10
  children: null;
10
11
  };
@@ -2956,12 +2956,7 @@ export declare const ViewModel: import("mobx-state-tree").IModelType<{
2956
2956
  }>;
2957
2957
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
2958
2958
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
2959
- readonly editorOptions: {
2960
- readonly label: string;
2961
- readonly value: string;
2962
- readonly _type: "panel";
2963
- readonly parentID: any;
2964
- }[];
2959
+ readonly editorOptions: import("../../editor").NavOptionType[];
2965
2960
  } & {
2966
2961
  replace(current: ({
2967
2962
  id: string;
@@ -1,3 +1,4 @@
1
+ import { NavOptionType } from '~/model/editor';
1
2
  import { PanelModelInstance } from './panel';
2
3
  export declare const PanelsModel: import("mobx-state-tree").IModelType<{
3
4
  list: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
@@ -2773,12 +2774,7 @@ export declare const PanelsModel: import("mobx-state-tree").IModelType<{
2773
2774
  }>;
2774
2775
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>): void;
2775
2776
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
2776
- readonly editorOptions: {
2777
- readonly label: string;
2778
- readonly value: string;
2779
- readonly _type: "panel";
2780
- readonly parentID: any;
2781
- }[];
2777
+ readonly editorOptions: NavOptionType[];
2782
2778
  } & {
2783
2779
  replace(current: Array<PanelModelInstance>): void;
2784
2780
  addANewPanel(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtable/dashboard",
3
- "version": "8.0.0",
3
+ "version": "8.1.0",
4
4
  "license": "Apache-2.0",
5
5
  "publishConfig": {
6
6
  "access": "public",