@k8slens/extensions 5.3.1-git.58ea0dc822.0 → 5.3.1-git.58ffb8e3e4.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.
Files changed (62) hide show
  1. package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -2
  2. package/dist/src/common/catalog-entities/web-link.d.ts +0 -2
  3. package/dist/src/common/hotbar-store.d.ts +16 -11
  4. package/dist/src/common/hotbar-store.injectable.d.ts +4 -0
  5. package/dist/src/common/hotbar-types.d.ts +5 -2
  6. package/dist/src/common/ipc/index.d.ts +1 -0
  7. package/dist/src/common/k8s-api/endpoints/crd.api.d.ts +29 -28
  8. package/dist/src/common/vars.d.ts +1 -0
  9. package/dist/src/extensions/extension-api.js +357 -116
  10. package/dist/src/extensions/lens-main-extension.d.ts +2 -0
  11. package/dist/src/extensions/lens-renderer-extension.d.ts +2 -1
  12. package/dist/src/extensions/registries/base-registry.d.ts +1 -1
  13. package/dist/src/extensions/registries/entity-setting-registry.d.ts +1 -1
  14. package/dist/src/extensions/registries/index.d.ts +0 -1
  15. package/dist/src/main/routes/port-forward-route.d.ts +0 -1
  16. package/dist/src/main/tray/tray-menu-items.injectable.d.ts +3 -0
  17. package/dist/src/main/tray/tray-menu-items.test.d.ts +1 -0
  18. package/dist/src/main/{tray.d.ts → tray/tray.d.ts} +4 -2
  19. package/dist/src/renderer/api/__tests__/catalog-entity-registry.test.d.ts +1 -1
  20. package/dist/src/renderer/api/catalog-entity-registry.d.ts +4 -0
  21. package/dist/src/renderer/api/catalog-entity.d.ts +1 -5
  22. package/dist/src/{main/catalog-sources → renderer/api}/helpers/general-active-sync.d.ts +0 -0
  23. package/dist/src/renderer/components/+custom-resources/custom-resources.injectable.d.ts +23 -0
  24. package/dist/src/renderer/components/+network-port-forwards/port-forward-menu.d.ts +2 -0
  25. package/dist/src/renderer/components/+network-services/service-port-component.d.ts +1 -0
  26. package/dist/src/renderer/components/+workloads-pods/pod-container-port.d.ts +1 -0
  27. package/dist/src/renderer/components/activate-entity-command/activate-entity-command.d.ts +1 -9
  28. package/dist/src/renderer/components/catalog-entities/weblink-add-command.d.ts +1 -11
  29. package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +2 -1
  30. package/dist/src/renderer/components/command-palette/command-container.d.ts +1 -7
  31. package/dist/src/renderer/components/command-palette/command-dialog.d.ts +1 -13
  32. package/dist/src/renderer/components/command-palette/command-overlay.injectable.d.ts +31 -0
  33. package/dist/src/renderer/components/command-palette/index.d.ts +1 -1
  34. package/dist/src/renderer/components/command-palette/registered-commands/internal-commands.injectable.d.ts +25 -0
  35. package/dist/src/renderer/components/command-palette/registered-commands/registered-commands.injectable.d.ts +25 -0
  36. package/dist/src/renderer/components/dock/terminal.d.ts +1 -1
  37. package/dist/src/renderer/components/hotbar/hotbar-add-command.d.ts +1 -6
  38. package/dist/src/renderer/components/hotbar/hotbar-menu.d.ts +1 -1
  39. package/dist/src/renderer/components/hotbar/hotbar-remove-command.d.ts +1 -9
  40. package/dist/src/renderer/components/hotbar/hotbar-rename-command.d.ts +1 -14
  41. package/dist/src/renderer/components/hotbar/hotbar-selector.d.ts +3 -3
  42. package/dist/src/renderer/components/hotbar/hotbar-switch-command.d.ts +1 -12
  43. package/dist/src/renderer/components/input/input.d.ts +1 -0
  44. package/dist/src/renderer/components/{command-palette/command-overlay.d.ts → input/validators/unique-hotbar-name.injectable.d.ts} +4 -8
  45. package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +1 -1
  46. package/dist/src/renderer/components/menu/menu-actions.d.ts +1 -1
  47. package/dist/src/renderer/components/monaco-editor/monaco-editor.d.ts +1 -1
  48. package/dist/src/renderer/{components/getDi.d.ts → getDi.d.ts} +0 -0
  49. package/dist/src/renderer/{components/hotbar/hotbar-display-label.d.ts → getDiForUnitTesting.d.ts} +2 -2
  50. package/dist/src/renderer/initializers/catalog.d.ts +6 -1
  51. package/dist/src/renderer/initializers/index.d.ts +0 -1
  52. package/dist/src/renderer/navigation/helpers.d.ts +1 -1
  53. package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +1 -1
  54. package/dist/src/renderer/port-forward/port-forward-item.d.ts +4 -4
  55. package/dist/src/renderer/port-forward/port-forward-notify.d.ts +1 -0
  56. package/dist/src/renderer/port-forward/port-forward.store.d.ts +56 -6
  57. package/dist/src/renderer/theme.store.d.ts +0 -1
  58. package/dist/src/renderer/window/event-listener.injectable.d.ts +25 -0
  59. package/package.json +1 -1
  60. package/dist/src/extensions/registries/command-registry.d.ts +0 -36
  61. package/dist/src/renderer/components/getDiForUnitTesting.d.ts +0 -22
  62. package/dist/src/renderer/initializers/command-registry.d.ts +0 -21
@@ -22,8 +22,10 @@ import { LensExtension } from "./lens-extension";
22
22
  import type { CatalogEntity } from "../common/catalog";
23
23
  import type { IObservableArray } from "mobx";
24
24
  import type { MenuRegistration } from "../main/menu/menu-registration";
25
+ import type { TrayMenuRegistration } from "../main/tray/tray-menu-registration";
25
26
  export declare class LensMainExtension extends LensExtension {
26
27
  appMenus: MenuRegistration[];
28
+ trayMenus: TrayMenuRegistration[];
27
29
  navigate(pageId?: string, params?: Record<string, any>, frameId?: number): Promise<void>;
28
30
  addCatalogSource(id: string, source: IObservableArray<CatalogEntity>): void;
29
31
  removeCatalogSource(id: string): void;
@@ -28,6 +28,7 @@ import type { TopBarRegistration } from "../renderer/components/layout/top-bar/t
28
28
  import type { KubernetesCluster } from "../common/catalog-entities";
29
29
  import type { WelcomeMenuRegistration } from "../renderer/components/+welcome/welcome-menu-items/welcome-menu-registration";
30
30
  import type { WelcomeBannerRegistration } from "../renderer/components/+welcome/welcome-banner-items/welcome-banner-registration";
31
+ import type { CommandRegistration } from "../renderer/components/command-palette/registered-commands/commands";
31
32
  export declare class LensRendererExtension extends LensExtension {
32
33
  globalPages: registries.PageRegistration[];
33
34
  clusterPages: registries.PageRegistration[];
@@ -39,7 +40,7 @@ export declare class LensRendererExtension extends LensExtension {
39
40
  kubeObjectDetailItems: registries.KubeObjectDetailRegistration[];
40
41
  kubeObjectMenuItems: registries.KubeObjectMenuRegistration[];
41
42
  kubeWorkloadsOverviewItems: registries.WorkloadsOverviewDetailRegistration[];
42
- commands: registries.CommandRegistration[];
43
+ commands: CommandRegistration[];
43
44
  welcomeMenus: WelcomeMenuRegistration[];
44
45
  welcomeBanners: WelcomeBannerRegistration[];
45
46
  catalogEntityDetailItems: registries.CatalogEntityDetailRegistration<CatalogEntity>[];
@@ -19,7 +19,7 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import { Singleton } from "../../common/utils";
22
- import { LensExtension } from "../lens-extension";
22
+ import type { LensExtension } from "../lens-extension";
23
23
  export declare class BaseRegistry<T, I = T> extends Singleton {
24
24
  private items;
25
25
  constructor();
@@ -42,5 +42,5 @@ export interface RegisteredEntitySetting extends EntitySettingRegistration {
42
42
  }
43
43
  export declare class EntitySettingRegistry extends BaseRegistry<EntitySettingRegistration, RegisteredEntitySetting> {
44
44
  getRegisteredItem(item: EntitySettingRegistration): RegisteredEntitySetting;
45
- getItemsForKind(kind: string, apiVersion: string, source?: string): RegisteredEntitySetting[];
45
+ getItemsForKind: (kind: string, apiVersion: string, source?: string) => RegisteredEntitySetting[];
46
46
  }
@@ -25,7 +25,6 @@ export * from "./status-bar-registry";
25
25
  export * from "./kube-object-detail-registry";
26
26
  export * from "./kube-object-menu-registry";
27
27
  export * from "./kube-object-status-registry";
28
- export * from "./command-registry";
29
28
  export * from "./entity-setting-registry";
30
29
  export * from "./catalog-entity-detail-registry";
31
30
  export * from "./workloads-overview-detail-registry";
@@ -22,6 +22,5 @@ import type { LensApiRequest } from "../router";
22
22
  export declare class PortForwardRoute {
23
23
  static routePortForward(request: LensApiRequest): Promise<void>;
24
24
  static routeCurrentPortForward(request: LensApiRequest): Promise<void>;
25
- static routeAllPortForwards(request: LensApiRequest): Promise<void>;
26
25
  static routeCurrentPortForwardStop(request: LensApiRequest): Promise<void>;
27
26
  }
@@ -0,0 +1,3 @@
1
+ /// <reference types="@ogre-tools/injectable" />
2
+ declare const trayItemsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<import("./tray-menu-registration").TrayMenuRegistration[]>, unknown>, import("mobx").IComputedValue<import("./tray-menu-registration").TrayMenuRegistration[]>, unknown>;
3
+ export default trayItemsInjectable;
@@ -0,0 +1 @@
1
+ export {};
@@ -19,7 +19,9 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import { Tray } from "electron";
22
- import type { WindowManager } from "./window-manager";
22
+ import { IComputedValue } from "mobx";
23
+ import type { WindowManager } from "../window-manager";
24
+ import type { TrayMenuRegistration } from "./tray-menu-registration";
23
25
  export declare let tray: Tray;
24
26
  export declare function getTrayIcon(): string;
25
- export declare function initTray(windowManager: WindowManager): () => void;
27
+ export declare function initTray(windowManager: WindowManager, trayMenuItems: IComputedValue<TrayMenuRegistration[]>): () => void;
@@ -18,4 +18,4 @@
18
18
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
- import "../../../common/catalog-entities";
21
+ export {};
@@ -25,6 +25,10 @@ import { Disposer } from "../utils";
25
25
  import { CatalogRunEvent } from "../../common/catalog/catalog-run-event";
26
26
  export declare type EntityFilter = (entity: CatalogEntity) => any;
27
27
  export declare type CatalogEntityOnBeforeRun = (event: CatalogRunEvent) => void | Promise<void>;
28
+ export declare const catalogEntityRunContext: {
29
+ navigate: (url: string) => void;
30
+ setCommandPaletteContext: (entity?: CatalogEntity) => void;
31
+ };
28
32
  export declare class CatalogEntityRegistry {
29
33
  private categoryRegistry;
30
34
  protected activeEntityId: string | undefined;
@@ -18,10 +18,6 @@
18
18
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
- import type { CatalogEntity } from "../../common/catalog";
21
+ export { catalogEntityRunContext } from "./catalog-entity-registry";
22
22
  export { CatalogCategory, CatalogEntity } from "../../common/catalog";
23
23
  export type { CatalogEntityData, CatalogEntityKindData, CatalogEntityActionContext, CatalogEntityAddMenuContext, CatalogEntityAddMenu, CatalogEntityContextMenu, CatalogEntityContextMenuContext, } from "../../common/catalog";
24
- export declare const catalogEntityRunContext: {
25
- navigate: (url: string) => void;
26
- setCommandPaletteContext: (entity?: CatalogEntity) => void;
27
- };
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Copyright (c) 2021 OpenLens Authors
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ * this software and associated documentation files (the "Software"), to deal in
6
+ * the Software without restriction, including without limitation the rights to
7
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ * the Software, and to permit persons to whom the Software is furnished to do so,
9
+ * subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in all
12
+ * copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ */
21
+ /// <reference types="@ogre-tools/injectable" />
22
+ declare const customResourceDefinitionsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<import("mobx").IComputedValue<import("../../../common/k8s-api/endpoints").CustomResourceDefinition[]>, unknown>, import("mobx").IComputedValue<import("../../../common/k8s-api/endpoints").CustomResourceDefinition[]>, unknown>;
23
+ export default customResourceDefinitionsInjectable;
@@ -27,6 +27,8 @@ interface Props extends MenuActionsProps {
27
27
  }
28
28
  export declare class PortForwardMenu extends React.Component<Props> {
29
29
  remove(): void;
30
+ private startPortForwarding;
31
+ renderStartStopMenuItem(): JSX.Element;
30
32
  renderContent(): JSX.Element;
31
33
  render(): JSX.Element;
32
34
  }
@@ -29,6 +29,7 @@ export declare class ServicePortComponent extends React.Component<Props> {
29
29
  waiting: boolean;
30
30
  forwardPort: number;
31
31
  isPortForwarded: boolean;
32
+ isActive: boolean;
32
33
  constructor(props: Props);
33
34
  componentDidMount(): void;
34
35
  checkExistingPortForwarding(): Promise<void>;
@@ -33,6 +33,7 @@ export declare class PodContainerPort extends React.Component<Props> {
33
33
  waiting: boolean;
34
34
  forwardPort: number;
35
35
  isPortForwarded: boolean;
36
+ isActive: boolean;
36
37
  constructor(props: Props);
37
38
  componentDidMount(): void;
38
39
  checkExistingPortForwarding(): Promise<void>;
@@ -19,12 +19,4 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import React from "react";
22
- import type { CatalogEntity } from "../../api/catalog-entity";
23
- export declare class ActivateEntityCommand extends React.Component {
24
- get options(): {
25
- label: string;
26
- value: CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>;
27
- }[];
28
- onSelect(entity: CatalogEntity): void;
29
- render(): JSX.Element;
30
- }
22
+ export declare const ActivateEntityCommand: React.FC<{}>;
@@ -19,14 +19,4 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import React from "react";
22
- export declare class WeblinkAddCommand extends React.Component {
23
- url: string;
24
- nameHidden: boolean;
25
- dirty: boolean;
26
- constructor(props: {});
27
- onChangeUrl(url: string): void;
28
- onSubmitUrl(url: string): void;
29
- onSubmit(name: string): void;
30
- get showValidation(): boolean;
31
- render(): JSX.Element;
32
- }
22
+ export declare const WeblinkAddCommand: React.FC<{}>;
@@ -18,4 +18,5 @@
18
18
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
- export declare const ActiveHotbarName: () => JSX.Element;
21
+ import React from "react";
22
+ export declare const ActiveHotbarName: React.FC<{}>;
@@ -24,10 +24,4 @@ import type { ClusterId } from "../../../common/cluster-types";
24
24
  export interface CommandContainerProps {
25
25
  clusterId?: ClusterId;
26
26
  }
27
- export declare class CommandContainer extends React.Component<CommandContainerProps> {
28
- private escHandler;
29
- private findCommandById;
30
- private runCommand;
31
- componentDidMount(): void;
32
- render(): JSX.Element;
33
- }
27
+ export declare const CommandContainer: React.FC<CommandContainerProps>;
@@ -19,16 +19,4 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import React from "react";
22
- import type { CatalogEntity } from "../../../common/catalog";
23
- export declare class CommandDialog extends React.Component {
24
- menuIsOpen: boolean;
25
- searchValue: any;
26
- constructor(props: {});
27
- get activeEntity(): CatalogEntity | undefined;
28
- get options(): {
29
- value: string;
30
- label: string;
31
- }[];
32
- private onChange;
33
- render(): JSX.Element;
34
- }
22
+ export declare const CommandDialog: React.FC<{}>;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright (c) 2021 OpenLens Authors
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ * this software and associated documentation files (the "Software"), to deal in
6
+ * the Software without restriction, including without limitation the rights to
7
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ * the Software, and to permit persons to whom the Software is furnished to do so,
9
+ * subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in all
12
+ * copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ */
21
+ /// <reference types="@ogre-tools/injectable" />
22
+ import React from "react";
23
+ export declare class CommandOverlay {
24
+ #private;
25
+ get isOpen(): boolean;
26
+ open: (component: React.ReactElement) => void;
27
+ close: () => void;
28
+ get component(): React.ReactElement | null;
29
+ }
30
+ declare const commandOverlayInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<CommandOverlay, unknown>, CommandOverlay, unknown>;
31
+ export default commandOverlayInjectable;
@@ -20,4 +20,4 @@
20
20
  */
21
21
  export * from "./command-container";
22
22
  export * from "./command-dialog";
23
- export * from "./command-overlay";
23
+ export * from "./command-overlay.injectable";
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) 2021 OpenLens Authors
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ * this software and associated documentation files (the "Software"), to deal in
6
+ * the Software without restriction, including without limitation the rights to
7
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ * the Software, and to permit persons to whom the Software is furnished to do so,
9
+ * subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in all
12
+ * copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ */
21
+ /// <reference types="@ogre-tools/injectable" />
22
+ import type { CommandContext, CommandRegistration } from "./commands";
23
+ export declare function isKubernetesClusterActive(context: CommandContext): boolean;
24
+ declare const internalCommandsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<CommandRegistration[], unknown>, CommandRegistration[], unknown>;
25
+ export default internalCommandsInjectable;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright (c) 2021 OpenLens Authors
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of
5
+ * this software and associated documentation files (the "Software"), to deal in
6
+ * the Software without restriction, including without limitation the rights to
7
+ * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
8
+ * the Software, and to permit persons to whom the Software is furnished to do so,
9
+ * subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in all
12
+ * copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
16
+ * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
17
+ * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
18
+ * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
+ */
21
+ /// <reference types="@ogre-tools/injectable" />
22
+ import { IComputedValue } from "mobx";
23
+ import type { CommandRegistration } from "./commands";
24
+ declare const registeredCommandsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<IComputedValue<Map<string, Required<Omit<CommandRegistration, "scope">>>>, unknown>, IComputedValue<Map<string, Required<Omit<CommandRegistration, "scope">>>>, unknown>;
25
+ export default registeredCommandsInjectable;
@@ -24,7 +24,7 @@ import { TerminalApi } from "../../api/terminal-api";
24
24
  export declare class Terminal {
25
25
  tabId: TabId;
26
26
  protected api: TerminalApi;
27
- static readonly spawningPool: HTMLDivElement;
27
+ static get spawningPool(): HTMLElement;
28
28
  static preloadFonts(): Promise<void>;
29
29
  private xterm;
30
30
  private readonly fitAddon;
@@ -19,9 +19,4 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import React from "react";
22
- import { InputValidator } from "../input";
23
- export declare const uniqueHotbarName: InputValidator;
24
- export declare class HotbarAddCommand extends React.Component {
25
- onSubmit: (name: string) => void;
26
- render(): JSX.Element;
27
- }
22
+ export declare const HotbarAddCommand: React.FC<{}>;
@@ -30,7 +30,7 @@ interface Props {
30
30
  export declare class HotbarMenu extends React.Component<Props> {
31
31
  draggingOver: boolean;
32
32
  constructor(props: Props);
33
- get hotbar(): Required<import("../../../common/hotbar-types").HotbarCreateOptions>;
33
+ get hotbar(): Required<import("../../../common/hotbar-types").CreateHotbarData>;
34
34
  getEntity(item: HotbarItem): CatalogEntity<import("../../../common/catalog").CatalogEntityMetadata, import("../../../common/catalog").CatalogEntityStatus, import("../../../common/catalog").CatalogEntitySpec>;
35
35
  onDragStart(): void;
36
36
  onDragEnd(result: DropResult): void;
@@ -19,12 +19,4 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import React from "react";
22
- export declare class HotbarRemoveCommand extends React.Component {
23
- constructor(props: {});
24
- get options(): {
25
- value: string;
26
- label: string;
27
- }[];
28
- onChange(id: string): void;
29
- render(): JSX.Element;
30
- }
22
+ export declare const HotbarRemoveCommand: React.FC<{}>;
@@ -19,17 +19,4 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import React from "react";
22
- export declare class HotbarRenameCommand extends React.Component {
23
- hotbarId: string;
24
- hotbarName: string;
25
- constructor(props: {});
26
- get options(): {
27
- value: string;
28
- label: string;
29
- }[];
30
- onSelect: (id: string) => void;
31
- onSubmit: (name: string) => void;
32
- renderHotbarList(): JSX.Element;
33
- renderNameInput(): JSX.Element;
34
- render(): JSX.Element;
35
- }
22
+ export declare const HotbarRenameCommand: React.FC<{}>;
@@ -19,9 +19,9 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import "./hotbar-selector.scss";
22
+ import React from "react";
22
23
  import type { Hotbar } from "../../../common/hotbar-types";
23
- interface Props {
24
+ export interface HotbarSelectorProps {
24
25
  hotbar: Hotbar;
25
26
  }
26
- export declare const HotbarSelector: ({ hotbar }: Props) => JSX.Element;
27
- export {};
27
+ export declare const HotbarSelector: React.FC<HotbarSelectorProps>;
@@ -19,15 +19,4 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import React from "react";
22
- export declare class HotbarSwitchCommand extends React.Component {
23
- private static addActionId;
24
- private static removeActionId;
25
- private static renameActionId;
26
- constructor(props: {});
27
- get options(): {
28
- value: string;
29
- label: string;
30
- }[];
31
- onChange(idOrAction: string): void;
32
- render(): JSX.Element;
33
- }
22
+ export declare const HotbarSwitchCommand: React.FC<{}>;
@@ -83,6 +83,7 @@ export declare class Input extends React.Component<InputProps, State> {
83
83
  input: InputElement | null;
84
84
  validators: InputValidator[];
85
85
  state: State;
86
+ componentWillUnmount(): void;
86
87
  setValue(value?: string): void;
87
88
  getValue(): string;
88
89
  focus(): void;
@@ -18,11 +18,7 @@
18
18
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
- import React from "react";
22
- export declare class CommandOverlay {
23
- #private;
24
- static get isOpen(): boolean;
25
- static open(component: React.ReactElement): void;
26
- static close(): void;
27
- static get component(): React.ReactElement | null;
28
- }
21
+ /// <reference types="@ogre-tools/injectable" />
22
+ import type { InputValidator } from "../input_validators";
23
+ declare const uniqueHotbarNameInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<InputValidator, unknown>, InputValidator, unknown>;
24
+ export default uniqueHotbarNameInjectable;
@@ -20,5 +20,5 @@
20
20
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
21
  */
22
22
  import { hideDetails } from "../../kube-detail-params";
23
- export declare const hideDetailsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<typeof hideDetails, unknown>, typeof hideDetails, unknown>;
23
+ declare const hideDetailsInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<typeof hideDetails, unknown>, typeof hideDetails, unknown>;
24
24
  export default hideDetailsInjectable;
@@ -21,7 +21,7 @@
21
21
  import "./menu-actions.scss";
22
22
  import React from "react";
23
23
  import { IconProps } from "../icon";
24
- import { MenuProps } from "../menu";
24
+ import { MenuProps } from "./menu";
25
25
  export interface MenuActionsProps extends Partial<MenuProps> {
26
26
  className?: string;
27
27
  toolbar?: boolean;
@@ -21,7 +21,7 @@
21
21
  /// <reference types="lodash" />
22
22
  import React from "react";
23
23
  import { editor, Uri } from "monaco-editor";
24
- import { MonacoTheme } from "./index";
24
+ import type { MonacoTheme } from "./monaco-themes";
25
25
  export declare type MonacoEditorId = string;
26
26
  export interface MonacoEditorProps {
27
27
  id?: MonacoEditorId;
@@ -18,5 +18,5 @@
18
18
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
- export declare function hotbarDisplayLabel(id: string): string;
22
- export declare function hotbarDisplayIndex(id: string): string;
21
+ /// <reference types="@ogre-tools/injectable" />
22
+ export declare const getDiForUnitTesting: () => import("@ogre-tools/injectable").ConfigurableDependencyInjectionContainer;
@@ -18,5 +18,10 @@
18
18
  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
+ import React from "react";
21
22
  import "../../common/catalog-entities/kubernetes-cluster";
22
- export declare function initCatalog(): void;
23
+ interface Dependencies {
24
+ openCommandDialog: (component: React.ReactElement) => void;
25
+ }
26
+ export declare function initCatalog({ openCommandDialog }: Dependencies): void;
27
+ export {};
@@ -20,7 +20,6 @@
20
20
  */
21
21
  export * from "./catalog-entity-detail-registry";
22
22
  export * from "./catalog";
23
- export * from "./command-registry";
24
23
  export * from "./entity-settings-registry";
25
24
  export * from "./ipc";
26
25
  export * from "./kube-object-detail-registry";
@@ -26,4 +26,4 @@ export declare function navigateWithoutHistoryChange(location: Partial<Location>
26
26
  export declare function createPageParam<V = string>(init: PageParamInit<V>): PageParam<V>;
27
27
  export declare function matchRoute<P>(route: string | string[] | RouteProps): import("react-router").match<P>;
28
28
  export declare function isActiveRoute(route: string | string[] | RouteProps): boolean;
29
- export declare function getMatchedClusterId(): string;
29
+ export declare function getMatchedClusterId(): string | undefined;
@@ -26,6 +26,7 @@ interface Props extends Partial<DialogProps> {
26
26
  }
27
27
  interface PortForwardDialogOpenOptions {
28
28
  openInBrowser: boolean;
29
+ onClose: () => void;
29
30
  }
30
31
  export declare class PortForwardDialog extends Component<Props> {
31
32
  currentPort: number;
@@ -36,7 +37,6 @@ export declare class PortForwardDialog extends Component<Props> {
36
37
  get portForward(): ForwardedPort;
37
38
  close: () => void;
38
39
  onOpen: () => Promise<void>;
39
- onClose: () => void;
40
40
  changePort: (value: string) => void;
41
41
  startPortForward: () => Promise<void>;
42
42
  renderContents(): JSX.Element;
@@ -19,32 +19,32 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  import type { ItemObject } from "../../common/item.store";
22
+ export declare type ForwardedPortStatus = "Active" | "Disabled";
22
23
  export interface ForwardedPort {
23
- clusterId?: string;
24
24
  kind: string;
25
25
  namespace: string;
26
26
  name: string;
27
27
  port: number;
28
28
  forwardPort: number;
29
29
  protocol?: string;
30
+ status?: ForwardedPortStatus;
30
31
  }
31
32
  export declare class PortForwardItem implements ItemObject {
32
- clusterId: string;
33
33
  kind: string;
34
34
  namespace: string;
35
35
  name: string;
36
36
  port: number;
37
37
  forwardPort: number;
38
38
  protocol: string;
39
+ status: ForwardedPortStatus;
39
40
  constructor(pf: ForwardedPort);
40
41
  getName(): string;
41
42
  getNs(): string;
42
- get id(): number;
43
43
  getId(): string;
44
44
  getKind(): string;
45
45
  getPort(): number;
46
46
  getForwardPort(): number;
47
47
  getProtocol(): string;
48
- getStatus(): string;
48
+ getStatus(): ForwardedPortStatus;
49
49
  getSearchFields(): (string | number)[];
50
50
  }
@@ -19,3 +19,4 @@
19
19
  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  */
21
21
  export declare function aboutPortForwarding(): void;
22
+ export declare function notifyErrorPortForwarding(msg: string): void;