@k8slens/extensions 5.3.1-git.5591f8dca5.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.
- package/dist/src/common/catalog-entities/kubernetes-cluster.d.ts +1 -2
- package/dist/src/common/catalog-entities/web-link.d.ts +0 -2
- package/dist/src/common/hotbar-store.d.ts +16 -11
- package/dist/src/common/hotbar-store.injectable.d.ts +4 -0
- package/dist/src/common/hotbar-types.d.ts +5 -2
- package/dist/src/common/ipc/index.d.ts +1 -0
- package/dist/src/common/vars.d.ts +1 -0
- package/dist/src/extensions/extension-api.js +355 -114
- package/dist/src/extensions/lens-renderer-extension.d.ts +2 -1
- package/dist/src/extensions/registries/base-registry.d.ts +1 -1
- package/dist/src/extensions/registries/entity-setting-registry.d.ts +1 -1
- package/dist/src/extensions/registries/index.d.ts +0 -1
- package/dist/src/main/routes/port-forward-route.d.ts +0 -1
- package/dist/src/renderer/api/__tests__/catalog-entity-registry.test.d.ts +1 -1
- package/dist/src/renderer/api/catalog-entity-registry.d.ts +4 -0
- package/dist/src/renderer/api/catalog-entity.d.ts +1 -5
- package/dist/src/{main/catalog-sources → renderer/api}/helpers/general-active-sync.d.ts +0 -0
- package/dist/src/renderer/components/+custom-resources/custom-resources.injectable.d.ts +23 -0
- package/dist/src/renderer/components/+network-port-forwards/port-forward-menu.d.ts +2 -0
- package/dist/src/renderer/components/+network-services/service-port-component.d.ts +1 -0
- package/dist/src/renderer/components/+workloads-pods/pod-container-port.d.ts +1 -0
- package/dist/src/renderer/components/activate-entity-command/activate-entity-command.d.ts +1 -9
- package/dist/src/renderer/components/catalog-entities/weblink-add-command.d.ts +1 -11
- package/dist/src/renderer/components/cluster-manager/active-hotbar-name.d.ts +2 -1
- package/dist/src/renderer/components/command-palette/command-container.d.ts +1 -7
- package/dist/src/renderer/components/command-palette/command-dialog.d.ts +1 -13
- package/dist/src/renderer/components/command-palette/{command-overlay.d.ts → command-overlay.injectable.d.ts} +7 -4
- package/dist/src/renderer/components/command-palette/index.d.ts +1 -1
- package/dist/src/renderer/components/command-palette/registered-commands/internal-commands.injectable.d.ts +25 -0
- package/dist/src/renderer/components/command-palette/registered-commands/registered-commands.injectable.d.ts +25 -0
- package/dist/src/renderer/components/hotbar/hotbar-add-command.d.ts +1 -6
- package/dist/src/renderer/components/hotbar/hotbar-menu.d.ts +1 -1
- package/dist/src/renderer/components/hotbar/hotbar-remove-command.d.ts +1 -9
- package/dist/src/renderer/components/hotbar/hotbar-rename-command.d.ts +1 -14
- package/dist/src/renderer/components/hotbar/hotbar-selector.d.ts +3 -3
- package/dist/src/renderer/components/hotbar/hotbar-switch-command.d.ts +1 -12
- package/dist/src/renderer/components/input/input.d.ts +1 -0
- package/dist/src/renderer/components/{getDiForUnitTesting.d.ts → input/validators/unique-hotbar-name.injectable.d.ts} +4 -2
- package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts +1 -1
- package/dist/src/renderer/components/menu/menu-actions.d.ts +1 -1
- package/dist/src/renderer/components/monaco-editor/monaco-editor.d.ts +1 -1
- package/dist/src/renderer/{components/getDi.d.ts → getDi.d.ts} +0 -0
- package/dist/src/renderer/{initializers/command-registry.d.ts → getDiForUnitTesting.d.ts} +2 -1
- package/dist/src/renderer/initializers/catalog.d.ts +6 -1
- package/dist/src/renderer/initializers/index.d.ts +0 -1
- package/dist/src/renderer/navigation/helpers.d.ts +1 -1
- package/dist/src/renderer/port-forward/port-forward-dialog.d.ts +1 -1
- package/dist/src/renderer/port-forward/port-forward-item.d.ts +4 -4
- package/dist/src/renderer/port-forward/port-forward-notify.d.ts +1 -0
- package/dist/src/renderer/port-forward/port-forward.store.d.ts +56 -6
- package/dist/src/renderer/theme.store.d.ts +0 -1
- package/dist/src/renderer/window/event-listener.injectable.d.ts +25 -0
- package/package.json +1 -1
- package/dist/src/extensions/registries/command-registry.d.ts +0 -36
- package/dist/src/renderer/components/hotbar/hotbar-display-label.d.ts +0 -22
|
@@ -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:
|
|
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)
|
|
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
|
}
|
|
@@ -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
|
-
|
|
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
|
-
};
|
|
File without changes
|
|
@@ -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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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<{}>;
|
|
@@ -18,11 +18,14 @@
|
|
|
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
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
21
22
|
import React from "react";
|
|
22
23
|
export declare class CommandOverlay {
|
|
23
24
|
#private;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
get isOpen(): boolean;
|
|
26
|
+
open: (component: React.ReactElement) => void;
|
|
27
|
+
close: () => void;
|
|
28
|
+
get component(): React.ReactElement | null;
|
|
28
29
|
}
|
|
30
|
+
declare const commandOverlayInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<CommandOverlay, unknown>, CommandOverlay, unknown>;
|
|
31
|
+
export default commandOverlayInjectable;
|
|
@@ -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;
|
|
@@ -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
|
-
|
|
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").
|
|
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
|
|
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
|
|
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
|
|
24
|
+
export interface HotbarSelectorProps {
|
|
24
25
|
hotbar: Hotbar;
|
|
25
26
|
}
|
|
26
|
-
export declare const HotbarSelector:
|
|
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
|
|
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<{}>;
|
|
@@ -18,5 +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
|
-
|
|
22
|
-
|
|
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;
|
package/dist/src/renderer/components/kube-object-menu/dependencies/hide-details.injectable.d.ts
CHANGED
|
@@ -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
|
-
|
|
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 "
|
|
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 "./
|
|
24
|
+
import type { MonacoTheme } from "./monaco-themes";
|
|
25
25
|
export declare type MonacoEditorId = string;
|
|
26
26
|
export interface MonacoEditorProps {
|
|
27
27
|
id?: MonacoEditorId;
|
|
File without changes
|
|
@@ -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
|
-
|
|
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
|
-
|
|
23
|
+
interface Dependencies {
|
|
24
|
+
openCommandDialog: (component: React.ReactElement) => void;
|
|
25
|
+
}
|
|
26
|
+
export declare function initCatalog({ openCommandDialog }: Dependencies): void;
|
|
27
|
+
export {};
|
|
@@ -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():
|
|
48
|
+
getStatus(): ForwardedPortStatus;
|
|
49
49
|
getSearchFields(): (string | number)[];
|
|
50
50
|
}
|
|
@@ -27,13 +27,63 @@ export declare class PortForwardStore extends ItemStore<PortForwardItem> {
|
|
|
27
27
|
private init;
|
|
28
28
|
watch(): import("../utils").ExtendableDisposer;
|
|
29
29
|
loadAll(): Promise<any>;
|
|
30
|
-
reset(): void;
|
|
31
30
|
removeSelectedItems(): Promise<void[]>;
|
|
32
31
|
getById(id: string): PortForwardItem;
|
|
33
32
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
/**
|
|
34
|
+
* start an existing port-forward
|
|
35
|
+
* @param portForward the port-forward to start. If the forwardPort field is 0 then an arbitrary port will be
|
|
36
|
+
* used
|
|
37
|
+
*
|
|
38
|
+
* @returns the port-forward with updated status ("Active" if successfully started, "Disabled" otherwise) and
|
|
39
|
+
* forwardPort
|
|
40
|
+
*
|
|
41
|
+
* @throws if the port-forward does not already exist in the store
|
|
42
|
+
*/
|
|
43
|
+
export declare const startPortForward: (portForward: ForwardedPort) => Promise<ForwardedPort>;
|
|
44
|
+
/**
|
|
45
|
+
* add a port-forward to the store and optionally start it
|
|
46
|
+
* @param portForward the port-forward to add. If the port-forward already exists in the store it will be
|
|
47
|
+
* returned with its current state. If the forwardPort field is 0 then an arbitrary port will be
|
|
48
|
+
* used. If the status field is "Active" or not present then an attempt is made to start the port-forward.
|
|
49
|
+
*
|
|
50
|
+
* @returns the port-forward with updated status ("Active" if successfully started, "Disabled" otherwise) and
|
|
51
|
+
* forwardPort
|
|
52
|
+
*/
|
|
53
|
+
export declare const addPortForward: (portForward: ForwardedPort) => Promise<ForwardedPort>;
|
|
54
|
+
/**
|
|
55
|
+
* get a port-forward from the store, with up-to-date status
|
|
56
|
+
* @param portForward the port-forward to get.
|
|
57
|
+
*
|
|
58
|
+
* @returns the port-forward with updated status ("Active" if running, "Disabled" if not) and
|
|
59
|
+
* forwardPort used.
|
|
60
|
+
*
|
|
61
|
+
* @throws if the port-forward does not exist in the store
|
|
62
|
+
*/
|
|
63
|
+
export declare function getPortForward(portForward: ForwardedPort): Promise<ForwardedPort>;
|
|
64
|
+
/**
|
|
65
|
+
* modifies a port-forward in the store, including the forwardPort and protocol
|
|
66
|
+
* @param portForward the port-forward to modify.
|
|
67
|
+
*
|
|
68
|
+
* @returns the port-forward after being modified.
|
|
69
|
+
*/
|
|
70
|
+
export declare const modifyPortForward: (portForward: ForwardedPort, desiredPort: number) => Promise<ForwardedPort>;
|
|
71
|
+
/**
|
|
72
|
+
* stop an existing port-forward. Its status is set to "Disabled" after successfully stopped.
|
|
73
|
+
* @param portForward the port-forward to stop.
|
|
74
|
+
*
|
|
75
|
+
* @throws if the port-forward could not be stopped. Its status is unchanged
|
|
76
|
+
*/
|
|
77
|
+
export declare const stopPortForward: (portForward: ForwardedPort) => Promise<void>;
|
|
78
|
+
/**
|
|
79
|
+
* remove and stop an existing port-forward.
|
|
80
|
+
* @param portForward the port-forward to remove.
|
|
81
|
+
*/
|
|
82
|
+
export declare const removePortForward: (portForward: ForwardedPort) => Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* gets the list of port-forwards in the store
|
|
85
|
+
*
|
|
86
|
+
* @returns the port-forwards
|
|
87
|
+
*/
|
|
88
|
+
export declare function getPortForwards(): ForwardedPort[];
|
|
39
89
|
export declare const portForwardStore: PortForwardStore;
|
|
@@ -31,7 +31,6 @@ export interface Theme {
|
|
|
31
31
|
monacoTheme: MonacoEditorProps["theme"];
|
|
32
32
|
}
|
|
33
33
|
export declare class ThemeStore extends Singleton {
|
|
34
|
-
static readonly defaultTheme = "lens-dark";
|
|
35
34
|
protected styles: HTMLStyleElement;
|
|
36
35
|
private themes;
|
|
37
36
|
get activeThemeId(): string;
|