@k8slens/extensions 5.4.0-git.9b9b8e0d05.0 → 5.4.0-git.9c604dcfa1.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/catalog-category-registry.d.ts +2 -2
- package/dist/src/common/user-store/user-store.d.ts +1 -1
- package/dist/src/common/utils/collection-functions.d.ts +18 -4
- package/dist/src/common/utils/index.d.ts +1 -2
- package/dist/src/common/utils/objects.d.ts +2 -3
- package/dist/src/common/utils/openBrowser.d.ts +17 -0
- package/dist/src/extensions/common-api/utils.d.ts +1 -1
- package/dist/src/extensions/extension-api.js +26 -38
- package/dist/src/extensions/lens-extension.d.ts +1 -1
- package/dist/src/main/helm/helm-repo-manager.d.ts +8 -9
- package/dist/src/renderer/api/websocket-api.d.ts +1 -1
- package/dist/src/renderer/components/+config-secrets/secret-details.d.ts +1 -1
- package/dist/src/renderer/components/+preferences/add-helm-repo-dialog.d.ts +0 -1
- package/dist/src/renderer/components/+preferences/helm-charts.d.ts +4 -2
- package/dist/src/renderer/components/item-object-list/list-layout.d.ts +1 -2
- package/dist/src/renderer/components/kube-object-list-layout/kube-object-list-layout.d.ts +5 -1
- package/package.json +1 -1
- package/dist/src/common/utils/extended-map.d.ts +0 -30
- package/dist/src/common/utils/openExternal.d.ts +0 -5
|
@@ -41,7 +41,7 @@ export declare class LensExtension {
|
|
|
41
41
|
getExtensionFileFolder(): Promise<string>;
|
|
42
42
|
enable(register: (ext: LensExtension) => Promise<Disposer[]>): Promise<void>;
|
|
43
43
|
disable(): Promise<void>;
|
|
44
|
-
activate():
|
|
44
|
+
activate(): Promise<void>;
|
|
45
45
|
protected onActivate(): Promise<void> | void;
|
|
46
46
|
protected onDeactivate(): Promise<void> | void;
|
|
47
47
|
}
|
|
@@ -24,15 +24,14 @@ export interface HelmRepo {
|
|
|
24
24
|
export declare class HelmRepoManager extends Singleton {
|
|
25
25
|
protected repos: HelmRepo[];
|
|
26
26
|
protected helmEnv: HelmEnv;
|
|
27
|
-
protected
|
|
28
|
-
|
|
29
|
-
private
|
|
30
|
-
protected
|
|
27
|
+
protected didUpdateOnce: boolean;
|
|
28
|
+
loadAvailableRepos(): Promise<HelmRepo[]>;
|
|
29
|
+
private ensureInitialized;
|
|
30
|
+
protected parseHelmEnv(): Promise<HelmEnv>;
|
|
31
31
|
repo(name: string): Promise<HelmRepo>;
|
|
32
|
-
private
|
|
32
|
+
private list;
|
|
33
33
|
repositories(): Promise<HelmRepo[]>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
static removeRepo({ name, url }: HelmRepo): Promise<string>;
|
|
34
|
+
update(): Promise<string>;
|
|
35
|
+
addRepo({ name, url, insecureSkipTlsVerify, username, password, caFile, keyFile, certFile }: HelmRepo): Promise<string>;
|
|
36
|
+
removeRepo({ name, url }: HelmRepo): Promise<string>;
|
|
38
37
|
}
|
|
@@ -52,7 +52,7 @@ export interface WebSocketEvents {
|
|
|
52
52
|
declare type Defaulted<Params, DefaultParams extends keyof Params> = Required<Pick<Params, DefaultParams>> & Omit<Params, DefaultParams>;
|
|
53
53
|
declare const WebSocketApi_base: new <T>() => TypedEventEmitter<T>;
|
|
54
54
|
export declare class WebSocketApi<Events extends WebSocketEvents> extends WebSocketApi_base<Events> {
|
|
55
|
-
protected socket
|
|
55
|
+
protected socket?: WebSocket | null;
|
|
56
56
|
protected pendingCommands: (string | ArrayBufferLike | Blob | ArrayBufferView)[];
|
|
57
57
|
protected reconnectTimer?: any;
|
|
58
58
|
protected pingTimer?: any;
|
|
@@ -13,7 +13,7 @@ export declare class SecretDetails extends React.Component<Props> {
|
|
|
13
13
|
data: {
|
|
14
14
|
[name: string]: string;
|
|
15
15
|
};
|
|
16
|
-
revealSecret:
|
|
16
|
+
revealSecret: import("mobx").ObservableSet<string>;
|
|
17
17
|
constructor(props: Props);
|
|
18
18
|
componentDidMount(): Promise<void>;
|
|
19
19
|
saveSecret: () => Promise<void>;
|
|
@@ -6,12 +6,14 @@ import React from "react";
|
|
|
6
6
|
import { HelmRepo } from "../../../main/helm/helm-repo-manager";
|
|
7
7
|
import { SelectOption } from "../select";
|
|
8
8
|
export declare class HelmCharts extends React.Component {
|
|
9
|
-
|
|
9
|
+
loadingRepos: boolean;
|
|
10
|
+
loadingAvailableRepos: boolean;
|
|
10
11
|
repos: HelmRepo[];
|
|
11
12
|
addedRepos: import("mobx").ObservableMap<string, HelmRepo>;
|
|
12
13
|
constructor(props: {});
|
|
13
14
|
get options(): SelectOption<HelmRepo>[];
|
|
14
|
-
componentDidMount():
|
|
15
|
+
componentDidMount(): void;
|
|
16
|
+
loadAvailableRepos(): Promise<void>;
|
|
15
17
|
loadRepos(): Promise<void>;
|
|
16
18
|
addRepo(repo: HelmRepo): Promise<void>;
|
|
17
19
|
removeRepo(repo: HelmRepo): Promise<void>;
|
|
@@ -25,8 +25,7 @@ export declare type HeaderCustomizer = (placeholders: HeaderPlaceholders) => Hea
|
|
|
25
25
|
export interface ItemListLayoutProps<I extends ItemObject> {
|
|
26
26
|
tableId?: string;
|
|
27
27
|
className: IClassName;
|
|
28
|
-
|
|
29
|
-
getItems?: () => I[];
|
|
28
|
+
getItems: () => I[];
|
|
30
29
|
store: ItemStore<I>;
|
|
31
30
|
dependentStores?: ItemStore<ItemObject>[];
|
|
32
31
|
preloadStores?: boolean;
|
|
@@ -6,9 +6,13 @@ import "./kube-object-list-layout.scss";
|
|
|
6
6
|
import type { KubeObject } from "../../../common/k8s-api/kube-object";
|
|
7
7
|
import { ItemListLayoutProps } from "../item-object-list/list-layout";
|
|
8
8
|
import type { KubeObjectStore } from "../../../common/k8s-api/kube-object.store";
|
|
9
|
-
|
|
9
|
+
declare type ItemListLayoutPropsWithoutGetItems<K extends KubeObject> = Omit<ItemListLayoutProps<K>, "getItems">;
|
|
10
|
+
export interface KubeObjectListLayoutProps<K extends KubeObject> extends ItemListLayoutPropsWithoutGetItems<K> {
|
|
11
|
+
items?: K[];
|
|
12
|
+
getItems?: () => K[];
|
|
10
13
|
store: KubeObjectStore<K>;
|
|
11
14
|
dependentStores?: KubeObjectStore<KubeObject>[];
|
|
12
15
|
subscribeStores?: boolean;
|
|
13
16
|
}
|
|
14
17
|
export declare function KubeObjectListLayout<K extends KubeObject>(props: KubeObjectListLayoutProps<K>): JSX.Element;
|
|
18
|
+
export {};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@k8slens/extensions",
|
|
3
3
|
"productName": "OpenLens extensions",
|
|
4
4
|
"description": "OpenLens - Open Source Kubernetes IDE: extensions",
|
|
5
|
-
"version": "5.4.0-git.
|
|
5
|
+
"version": "5.4.0-git.9c604dcfa1.0",
|
|
6
6
|
"copyright": "© 2021 OpenLens Authors",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
3
|
-
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
4
|
-
*/
|
|
5
|
-
import { ObservableMap } from "mobx";
|
|
6
|
-
export declare function multiSet<T, V>(map: Map<T, V>, newEntries: [T, V][]): void;
|
|
7
|
-
export declare class ExtendedMap<K, V> extends Map<K, V> {
|
|
8
|
-
static new<K, V>(entries?: readonly (readonly [K, V])[] | null): ExtendedMap<K, V>;
|
|
9
|
-
/**
|
|
10
|
-
* Get the value behind `key`. If it was not present, first insert the value returned by `getVal`
|
|
11
|
-
* @param key The key to insert into the map with
|
|
12
|
-
* @param getVal A function that returns a new instance of `V`.
|
|
13
|
-
* @returns The value in the map
|
|
14
|
-
*/
|
|
15
|
-
getOrInsert(key: K, getVal: () => V): V;
|
|
16
|
-
/**
|
|
17
|
-
* Set the value associated with `key` iff there was not a previous value
|
|
18
|
-
* @throws if `key` already in map
|
|
19
|
-
* @returns `this` so that `strictSet` can be chained
|
|
20
|
-
*/
|
|
21
|
-
strictSet(key: K, val: V): this;
|
|
22
|
-
/**
|
|
23
|
-
* Get the value associated with `key`
|
|
24
|
-
* @throws if `key` did not a value associated with it
|
|
25
|
-
*/
|
|
26
|
-
strictGet(key: K): V;
|
|
27
|
-
}
|
|
28
|
-
export declare class ExtendedObservableMap<K, V> extends ObservableMap<K, V> {
|
|
29
|
-
getOrInsert(key: K, getVal: () => V): V;
|
|
30
|
-
}
|