@devtable/dashboard 10.32.0 → 10.33.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.
@@ -4,7 +4,7 @@ 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_' | '_Add_A_PANEL_' | '_QUERIES_SETTINGS_';
7
+ _action_type: '_Add_A_Filter_' | '_Add_A_SQL_SNIPPET_' | '_Add_A_QUERY_' | '_Add_A_VIEW_' | '_Add_A_PANEL_' | '_SQL_SNIPPETS_SETTINGS_' | '_QUERIES_SETTINGS_';
8
8
  parentID?: string;
9
9
  Icon: null;
10
10
  children: null;
@@ -18,7 +18,7 @@ export declare type NavLinkType = {
18
18
  children?: NavOptionType[];
19
19
  };
20
20
  export declare type NavOptionType = NavLinkType | NavActionType;
21
- export declare type ValidEditorPathType = ['_QUERY_VARS_'] | ['_MOCK_CONTEXT_'] | ['_FILTERS_', string] | ['_SQL_SNIPPETS_', string] | ['_QUERIES_'] | ['_QUERIES_', string] | ['_VIEWS_', string] | ['_VIEWS_', string, '_PANELS_', string] | [];
21
+ export declare type ValidEditorPathType = ['_QUERY_VARS_'] | ['_MOCK_CONTEXT_'] | ['_FILTERS_', string] | ['_SQL_SNIPPETS_'] | ['_SQL_SNIPPETS_', string] | ['_QUERIES_'] | ['_QUERIES_', string] | ['_VIEWS_', string] | ['_VIEWS_', string, '_PANELS_', string] | [];
22
22
  export declare const EditorModel: import("mobx-state-tree").IModelType<{
23
23
  path: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<ValidEditorPathType, ValidEditorPathType, ValidEditorPathType>, [undefined]>;
24
24
  settings_open: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
@@ -50,6 +50,33 @@ export declare const SQLSnippetsModel: import("mobx-state-tree").IModelType<{
50
50
  isADuplicatedKey(newKey: string): boolean;
51
51
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>) | undefined;
52
52
  } & {
53
+ readonly sortedList: ({
54
+ key: string;
55
+ value: string;
56
+ } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
57
+ readonly json: {
58
+ key: string;
59
+ value: string;
60
+ };
61
+ } & {
62
+ setKey(key: string): void;
63
+ setValue(value: string): void;
64
+ } & {
65
+ isADuplicatedKey(newKey: string): boolean;
66
+ } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
67
+ key: import("mobx-state-tree").ISimpleType<string>;
68
+ value: import("mobx-state-tree").ISimpleType<string>;
69
+ }, {
70
+ readonly json: {
71
+ key: string;
72
+ value: string;
73
+ };
74
+ } & {
75
+ setKey(key: string): void;
76
+ setValue(value: string): void;
77
+ } & {
78
+ isADuplicatedKey(newKey: string): boolean;
79
+ }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
53
80
  readonly options: {
54
81
  readonly label: string;
55
82
  readonly value: string;
@@ -60,6 +87,7 @@ export declare const SQLSnippetsModel: import("mobx-state-tree").IModelType<{
60
87
  append(item: SQLSnippetRenderModelSnapshotIn): void;
61
88
  remove(index: number): void;
62
89
  removeByKey(key: string): void;
90
+ removeByKeys(keys: string[]): void;
63
91
  replaceByIndex(index: number, replacement: SQLSnippetRenderModelSnapshotIn): void;
64
92
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
65
93
  export declare type SQLSnippetsModelInstance = Instance<typeof SQLSnippetsModel>;
@@ -0,0 +1,3 @@
1
+ export declare const EditSQLSnippets: (() => import('./react/jsx-runtime').JSX.Element) & {
2
+ displayName: string;
3
+ };
@@ -2,6 +2,7 @@ import { ValidEditorPathType } from '~/dashboard-editor/model/editor';
2
2
  export declare function isQueryVars(path: ValidEditorPathType): boolean;
3
3
  export declare function isMockContext(path: ValidEditorPathType): boolean;
4
4
  export declare function isFilter(path: ValidEditorPathType): boolean;
5
+ export declare function isSQLSnippets(path: ValidEditorPathType): boolean;
5
6
  export declare function isSQLSnippet(path: ValidEditorPathType): boolean;
6
7
  export declare function isQuery(path: ValidEditorPathType): boolean;
7
8
  export declare function isQueries(path: ValidEditorPathType): boolean;
@@ -0,0 +1,3 @@
1
+ export declare const SQLSnippetsSettingsButton: (() => import('./react/jsx-runtime').JSX.Element) & {
2
+ displayName: string;
3
+ };