@devtable/dashboard 13.41.2 → 13.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.
@@ -10,6 +10,11 @@ export interface IPluginContextProps {
10
10
  colorManager: IColorManager;
11
11
  }
12
12
  export declare const vizList: import('../../types/plugin').VizComponent[];
13
+ export type VizNameKeys = {
14
+ displayName: string;
15
+ displayGroup: string;
16
+ };
17
+ export declare const vizNameToKeys: Record<string, VizNameKeys>;
13
18
  export declare const pluginManager: PluginManager;
14
19
  /**
15
20
  * All available tokens of services, it also serves as an overview of the
@@ -1,5 +1,7 @@
1
1
  import { Icon } from '@tabler/icons-react';
2
2
  import { Instance } from 'mobx-state-tree';
3
+ import { SpotlightAction } from '@mantine/spotlight';
4
+ import { VizNameKeys } from '../../../components/plugins';
3
5
  export type NavActionType = {
4
6
  label: string;
5
7
  value: string;
@@ -15,6 +17,7 @@ export type NavLinkType = {
15
17
  _type: 'GROUP' | 'query_variables' | 'mock_context' | 'filter' | 'sql_snippet' | 'query' | 'view' | 'panel';
16
18
  Icon?: Icon;
17
19
  parentID?: string;
20
+ viz?: VizNameKeys;
18
21
  children?: NavOptionType[];
19
22
  };
20
23
  export type NavOptionType = NavLinkType | NavActionType;
@@ -33,10 +36,13 @@ export declare const EditorModel: import("mobx-state-tree").IModelType<{
33
36
  } & {
34
37
  setPath(v: ValidEditorPathType): void;
35
38
  setSettingsOpen(v: boolean): void;
39
+ openAndSetPath(v: ValidEditorPathType): void;
36
40
  } & {
37
41
  setPanelTab(tab: PanelTab | null): void;
38
42
  open(path: ValidEditorPathType): void;
39
43
  close(): void;
40
44
  navigate(o: NavOptionType): void;
45
+ } & {
46
+ readonly spotlightActions: SpotlightAction[];
41
47
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
42
48
  export type EditorModelInstance = Instance<typeof EditorModel>;
@@ -0,0 +1,2 @@
1
+ export * from './spotlight-provider';
2
+ export * from './spotlight-control';
@@ -0,0 +1,4 @@
1
+ import { SpotlightActionProps } from '@mantine/spotlight';
2
+ export declare const SpotlightActionComponent: (({ action, styles, classNames, hovered, onTrigger, highlightQuery, query, ...others }: SpotlightActionProps) => import('./react/jsx-runtime').JSX.Element) & {
3
+ displayName: string;
4
+ };
@@ -0,0 +1 @@
1
+ export declare const SpotlightControl: () => import('./react/jsx-runtime').JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from './react';
2
+ export declare const SpotlightProvider: (({ children }: {
3
+ children: ReactNode;
4
+ }) => import('./react/jsx-runtime').JSX.Element) & {
5
+ displayName: string;
6
+ };
@@ -1,3 +1,4 @@
1
1
  export * from './header';
2
2
  export * from './navbar';
3
3
  export * from './settings';
4
+ export * from './header/spotlight';