kui-shell
Version:
This is the monorepo for Kui, the hybrid command-line/GUI electron-based Kubernetes tool
43 lines (42 loc) • 2.89 kB
TypeScript
import { Sidecar, getSidecar, CustomSpec, CustomContent } from './sidecar-core';
export { Sidecar, getSidecar, CustomSpec, CustomContent };
import { isCustomSpec } from './custom-content';
export { isCustomSpec };
import { BadgeSpec, Badge, BadgeOptions } from './badge';
export { BadgeSpec, Badge, BadgeOptions };
import { Tab } from '../tab';
import { isVisible, toggle, show, hide, clearSelection, currentSelection, setMaximization, toggleMaximization, remove } from './sidecar-visibility';
export { isVisible, toggle, show, hide, clearSelection, currentSelection, setMaximization, toggleMaximization, remove };
import { ShowOptions } from './show-options';
import { ToolbarText } from './toolbar-text';
import Presentation from './presentation';
import { MetadataBearingByReference, isMetadataBearingByReference, EntitySpec } from '../../models/entity';
import { ExecOptions } from '../../models/execOptions';
export { MetadataBearingByReference };
export { isMetadataBearingByReference };
export declare const beautify: (kind: string, code: string) => string;
export declare const maybeHideEntity: (tab: Tab, entity: EntitySpec) => boolean;
export declare const getActiveView: (tab: Tab) => Element;
export declare const linkify: (dom: Element) => void;
export declare const addVersionBadge: (tab: Tab, entity: EntitySpec, { clear, badgesDom }?: {
clear?: boolean;
badgesDom?: HTMLElement;
}) => void;
export declare const addSidecarHeaderIconText: (viewName: string, sidecar: HTMLElement) => void;
export declare const addNameToSidecarHeader: (sidecar: Sidecar, name: string | Element, packageName?: string, onclick?: () => void, viewName?: string, subtext?: string | HTMLElement | Promise<string> | ToolbarText | Promise<HTMLElement>, entity?: EntitySpec | CustomSpec<void>) => Promise<Element>;
export declare const isFullscreen: (tab: Tab) => boolean;
export declare const showCustom: (tab: Tab, custom: CustomSpec<void>, options?: ExecOptions, resultDom?: Element) => Promise<Presentation>;
export declare const getEnclosingTab: (sidecar: Sidecar) => Tab;
export declare enum SidecarState {
NotShown = 0,
Minimized = 1,
Open = 2,
FullScreen = 3
}
export declare const getSidecarState: (tab: Tab) => SidecarState;
export declare const showGenericEntity: (tab: Tab, entity: EntitySpec | CustomSpec<void>, options?: ShowOptions) => Sidecar;
export declare type ISidecarViewHandler = (tab: Tab, entity: Object, sidecar: Element, options: ShowOptions) => void;
export declare const registerEntityView: (kind: string, handler: ISidecarViewHandler) => void;
export declare const showEntity: (tab: Tab, entity: EntitySpec | CustomSpec<void>, options?: ShowOptions) => true | void | Promise<Presentation>;
export declare const insertView: (tab: Tab) => (view: HTMLElement) => void;
export declare const insertCustomContent: (tab: Tab, view: HTMLElement) => void;