@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.
- 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/k8s-api/endpoints/crd.api.d.ts +29 -28
- package/dist/src/common/vars.d.ts +1 -0
- package/dist/src/extensions/extension-api.js +357 -116
- package/dist/src/extensions/lens-main-extension.d.ts +2 -0
- 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/main/tray/tray-menu-items.injectable.d.ts +3 -0
- package/dist/src/main/tray/tray-menu-items.test.d.ts +1 -0
- package/dist/src/main/{tray.d.ts → tray/tray.d.ts} +4 -2
- 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.injectable.d.ts +31 -0
- 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/dock/terminal.d.ts +1 -1
- 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/{command-palette/command-overlay.d.ts → input/validators/unique-hotbar-name.injectable.d.ts} +4 -8
- 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/{components/hotbar/hotbar-display-label.d.ts → getDiForUnitTesting.d.ts} +2 -2
- 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/getDiForUnitTesting.d.ts +0 -22
- package/dist/src/renderer/initializers/command-registry.d.ts +0 -21
|
@@ -18,8 +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 { CatalogEntity, CatalogEntityActionContext, CatalogEntityContextMenuContext, CatalogEntityMetadata, CatalogEntityStatus } from "../catalog";
|
|
22
|
-
import { CatalogCategory, CatalogCategorySpec } from "../catalog";
|
|
21
|
+
import { CatalogEntity, CatalogEntityActionContext, CatalogEntityContextMenuContext, CatalogEntityMetadata, CatalogEntityStatus, CatalogCategory, CatalogCategorySpec } from "../catalog";
|
|
23
22
|
import type { CatalogEntitySpec } from "../catalog/catalog-entity";
|
|
24
23
|
export interface KubernetesClusterPrometheusMetrics {
|
|
25
24
|
address?: {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { BaseStore } from "./base-store";
|
|
22
22
|
import { CatalogEntity } from "./catalog";
|
|
23
|
-
import { Hotbar,
|
|
23
|
+
import { Hotbar, CreateHotbarData, CreateHotbarOptions } from "./hotbar-types";
|
|
24
24
|
export interface HotbarStoreModel {
|
|
25
25
|
hotbars: Hotbar[];
|
|
26
26
|
activeHotbarId: string;
|
|
@@ -31,19 +31,22 @@ export declare class HotbarStore extends BaseStore<HotbarStoreModel> {
|
|
|
31
31
|
private _activeHotbarId;
|
|
32
32
|
constructor();
|
|
33
33
|
get activeHotbarId(): string;
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
/**
|
|
35
|
+
* If `hotbar` points to a known hotbar, make it active. Otherwise, ignore
|
|
36
|
+
* @param hotbar The hotbar instance, or the index, or its ID
|
|
37
|
+
*/
|
|
38
|
+
setActiveHotbar(hotbar: Hotbar | number | string): void;
|
|
39
|
+
private hotbarIndexById;
|
|
40
|
+
private hotbarIndex;
|
|
36
41
|
get activeHotbarIndex(): number;
|
|
37
42
|
protected fromStore(data?: Partial<HotbarStoreModel>): void;
|
|
38
43
|
toJSON(): HotbarStoreModel;
|
|
39
|
-
getActive(): Required<
|
|
40
|
-
getByName(name: string): Required<
|
|
41
|
-
getById(id: string): Required<
|
|
42
|
-
add(data:
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
setHotbarName(id: string, name: string): void;
|
|
46
|
-
remove(hotbar: Hotbar): void;
|
|
44
|
+
getActive(): Required<CreateHotbarData>;
|
|
45
|
+
getByName(name: string): Required<CreateHotbarData>;
|
|
46
|
+
getById(id: string): Required<CreateHotbarData>;
|
|
47
|
+
add: (data: CreateHotbarData, { setActive }?: CreateHotbarOptions) => void;
|
|
48
|
+
setHotbarName: (id: string, name: string) => any;
|
|
49
|
+
remove: (hotbar: Hotbar) => void;
|
|
47
50
|
addToHotbar(item: CatalogEntity, cellIndex?: number): void;
|
|
48
51
|
removeFromHotbar(uid: string): void;
|
|
49
52
|
/**
|
|
@@ -61,4 +64,6 @@ export declare class HotbarStore extends BaseStore<HotbarStoreModel> {
|
|
|
61
64
|
* @returns boolean
|
|
62
65
|
*/
|
|
63
66
|
isAddedToActive(entity: CatalogEntity): boolean;
|
|
67
|
+
getDisplayLabel(hotbar: Hotbar): string;
|
|
68
|
+
getDisplayIndex(hotbar: Hotbar): string;
|
|
64
69
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="@ogre-tools/injectable" />
|
|
2
|
+
import { HotbarStore } from "./hotbar-store";
|
|
3
|
+
declare const hotbarManagerInjectable: import("@ogre-tools/injectable").Injectable<import("@ogre-tools/injectable").InjectionToken<HotbarStore, unknown>, HotbarStore, unknown>;
|
|
4
|
+
export default hotbarManagerInjectable;
|
|
@@ -29,11 +29,14 @@ export interface HotbarItem {
|
|
|
29
29
|
[key: string]: string;
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
export declare type Hotbar = Required<
|
|
33
|
-
export interface
|
|
32
|
+
export declare type Hotbar = Required<CreateHotbarData>;
|
|
33
|
+
export interface CreateHotbarData {
|
|
34
34
|
id?: string;
|
|
35
35
|
name: string;
|
|
36
36
|
items?: Tuple<HotbarItem | null, typeof defaultHotbarCells>;
|
|
37
37
|
}
|
|
38
|
+
export interface CreateHotbarOptions {
|
|
39
|
+
setActive?: boolean;
|
|
40
|
+
}
|
|
38
41
|
export declare const defaultHotbarCells = 12;
|
|
39
42
|
export declare function getEmptyHotbar(name: string, id?: string): Hotbar;
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
20
20
|
*/
|
|
21
21
|
export declare const dialogShowOpenDialogHandler = "dialog:show-open-dialog";
|
|
22
|
+
export declare const catalogEntityRunListener = "catalog-entity:run";
|
|
22
23
|
export * from "./ipc";
|
|
23
24
|
export * from "./invalid-kubeconfig";
|
|
24
25
|
export * from "./update-available.ipc";
|
|
@@ -40,34 +40,35 @@ export interface CRDVersion {
|
|
|
40
40
|
schema?: object;
|
|
41
41
|
additionalPrinterColumns?: AdditionalPrinterColumnsV1[];
|
|
42
42
|
}
|
|
43
|
-
export interface
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
listKind: string;
|
|
55
|
-
};
|
|
56
|
-
scope: "Namespaced" | "Cluster" | string;
|
|
57
|
-
/**
|
|
58
|
-
* @deprecated for apiextensions.k8s.io/v1 but used previously
|
|
59
|
-
*/
|
|
60
|
-
validation?: object;
|
|
61
|
-
versions?: CRDVersion[];
|
|
62
|
-
conversion: {
|
|
63
|
-
strategy?: string;
|
|
64
|
-
webhook?: any;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated for apiextensions.k8s.io/v1 but used previously
|
|
68
|
-
*/
|
|
69
|
-
additionalPrinterColumns?: AdditionalPrinterColumnsV1Beta[];
|
|
43
|
+
export interface CustomResourceDefinitionSpec {
|
|
44
|
+
group: string;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated for apiextensions.k8s.io/v1 but used in v1beta1
|
|
47
|
+
*/
|
|
48
|
+
version?: string;
|
|
49
|
+
names: {
|
|
50
|
+
plural: string;
|
|
51
|
+
singular: string;
|
|
52
|
+
kind: string;
|
|
53
|
+
listKind: string;
|
|
70
54
|
};
|
|
55
|
+
scope: "Namespaced" | "Cluster";
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated for apiextensions.k8s.io/v1 but used in v1beta1
|
|
58
|
+
*/
|
|
59
|
+
validation?: object;
|
|
60
|
+
versions?: CRDVersion[];
|
|
61
|
+
conversion: {
|
|
62
|
+
strategy?: string;
|
|
63
|
+
webhook?: any;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated for apiextensions.k8s.io/v1 but used in v1beta1
|
|
67
|
+
*/
|
|
68
|
+
additionalPrinterColumns?: AdditionalPrinterColumnsV1Beta[];
|
|
69
|
+
}
|
|
70
|
+
export interface CustomResourceDefinition {
|
|
71
|
+
spec: CustomResourceDefinitionSpec;
|
|
71
72
|
status: {
|
|
72
73
|
conditions: {
|
|
73
74
|
lastTransitionTime: string;
|
|
@@ -100,7 +101,7 @@ export declare class CustomResourceDefinition extends KubeObject {
|
|
|
100
101
|
getResourceKind(): string;
|
|
101
102
|
getResourceTitle(): string;
|
|
102
103
|
getGroup(): string;
|
|
103
|
-
getScope():
|
|
104
|
+
getScope(): "Namespaced" | "Cluster";
|
|
104
105
|
getPreferedVersion(): CRDVersion;
|
|
105
106
|
getVersion(): string;
|
|
106
107
|
isNamespaced(): boolean;
|
|
@@ -33,6 +33,7 @@ export declare const isIntegrationTesting: boolean;
|
|
|
33
33
|
export declare const productName: string;
|
|
34
34
|
export declare const appName: string;
|
|
35
35
|
export declare const publicPath: string;
|
|
36
|
+
export declare const defaultTheme: string;
|
|
36
37
|
export declare const contextDir: string;
|
|
37
38
|
export declare const buildDir: string;
|
|
38
39
|
export declare const preloadEntrypoint: string;
|