@k8slens/extensions 6.0.1-git.df1cc8b788.0 → 6.0.1-git.e2b854d3af.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/cluster/cluster.d.ts +2 -0
- package/dist/src/common/fs/stat/stat.global-override-for-injectable.d.ts +5 -0
- package/dist/src/common/fs/stat/stat.injectable.d.ts +2 -0
- package/dist/src/common/fs/validate-directory.injectable.d.ts +4 -0
- package/dist/src/common/fs/watch/watch.global-override-for-injectable.d.ts +5 -0
- package/dist/src/common/fs/watch/watch.injectable.d.ts +4 -0
- package/dist/src/common/ipc/broadcast-message.injectable.d.ts +2 -2
- package/dist/src/common/k8s-api/kube-object.store.d.ts +1 -1
- package/dist/src/common/protocol-handler/router.d.ts +2 -0
- package/dist/src/common/utils/abort-controller.d.ts +1 -1
- package/dist/src/extensions/extension-api.js +16 -214
- package/dist/src/extensions/extension-discovery/extension-discovery.d.ts +8 -0
- package/dist/src/main/__test__/cluster.test.d.ts +0 -4
- package/dist/src/main/helm/helm-chart-manager-cache.injectable.d.ts +7 -0
- package/dist/src/main/helm/helm-chart-manager.d.ts +9 -3
- package/dist/src/main/helm/helm-chart-manager.injectable.d.ts +4 -0
- package/dist/src/main/kube-auth-proxy/kube-auth-proxy.d.ts +3 -1
- package/dist/src/main/kube-auth-proxy/wait-until-port-is-used/wait-until-port-is-used.global-override-for-injectable.d.ts +5 -0
- package/dist/src/main/kube-auth-proxy/wait-until-port-is-used/wait-until-port-is-used.injectable.d.ts +3 -0
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.d.ts +2 -0
- package/dist/src/main/utils/channel/ipc-main/ipc-main.global-override-for-injectable.d.ts +5 -0
- package/dist/src/renderer/api/catalog/entity/registry.d.ts +2 -0
- package/dist/src/renderer/components/cluster-settings/components/cluster-local-terminal-settings.d.ts +2 -1
- package/dist/src/renderer/components/dock/create-resource/view.d.ts +1 -2
- package/dist/src/renderer/components/dock/edit-resource/view.d.ts +1 -2
- package/dist/src/renderer/components/dock/install-chart/view.d.ts +3 -4
- package/dist/src/renderer/components/switch/form-switcher.d.ts +9 -2
- package/dist/src/renderer/components/switch/switcher.d.ts +7 -8
- package/dist/src/renderer/protocol-handler/lens-protocol-router-renderer/lens-protocol-router-renderer.d.ts +2 -5
- package/dist/src/renderer/utils/channel/ipc-renderer.global-override-for-injectable.d.ts +5 -0
- package/package.json +1 -1
- package/dist/src/main/helm/__mocks__/helm-chart-manager.d.ts +0 -11
@@ -9,6 +9,10 @@ import type { ExtensionLoader } from "../extension-loader";
|
|
9
9
|
import type { LensExtensionId, LensExtensionManifest } from "../lens-extension";
|
10
10
|
import type { ExtensionInstallationStateStore } from "../extension-installation-state-store/extension-installation-state-store";
|
11
11
|
import type { PackageJson } from "type-fest";
|
12
|
+
import type { ReadJson } from "../../common/fs/read-json-file.injectable";
|
13
|
+
import type { Logger } from "../../common/logger";
|
14
|
+
import type { PathExists } from "../../common/fs/path-exists.injectable";
|
15
|
+
import type { Watch } from "../../common/fs/watch/watch.injectable";
|
12
16
|
interface Dependencies {
|
13
17
|
extensionLoader: ExtensionLoader;
|
14
18
|
extensionsStore: ExtensionsStore;
|
@@ -19,6 +23,10 @@ interface Dependencies {
|
|
19
23
|
installExtensions: (packageJsonPath: string, packagesJson: PackageJson) => Promise<void>;
|
20
24
|
extensionPackageRootDirectory: string;
|
21
25
|
staticFilesDirectory: string;
|
26
|
+
readJsonFile: ReadJson;
|
27
|
+
pathExists: PathExists;
|
28
|
+
watch: Watch;
|
29
|
+
logger: Logger;
|
22
30
|
}
|
23
31
|
export interface InstalledExtension {
|
24
32
|
id: LensExtensionId;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
export interface ChartCacheEntry {
|
2
|
+
data: string;
|
3
|
+
mtimeMs: number;
|
4
|
+
}
|
5
|
+
export declare type HelmChartManagerCache = Map<string, ChartCacheEntry>;
|
6
|
+
declare const helmChartManagerCacheInjectable: import("@ogre-tools/injectable").Injectable<HelmChartManagerCache, unknown, void>;
|
7
|
+
export default helmChartManagerCacheInjectable;
|
@@ -5,15 +5,20 @@
|
|
5
5
|
import type { RepoHelmChartList } from "../../common/k8s-api/endpoints/helm-charts.api";
|
6
6
|
import type { SetRequired } from "type-fest";
|
7
7
|
import type { HelmRepo } from "../../common/helm/helm-repo";
|
8
|
+
import type { HelmChartManagerCache } from "./helm-chart-manager-cache.injectable";
|
9
|
+
import type { Logger } from "../../common/logger";
|
8
10
|
export interface HelmCacheFile {
|
9
11
|
apiVersion: string;
|
10
12
|
entries: RepoHelmChartList;
|
11
13
|
}
|
14
|
+
interface Dependencies {
|
15
|
+
cache: HelmChartManagerCache;
|
16
|
+
logger: Logger;
|
17
|
+
}
|
12
18
|
export declare class HelmChartManager {
|
13
|
-
|
19
|
+
private dependencies;
|
14
20
|
protected readonly repo: SetRequired<HelmRepo, "cacheFilePath">;
|
15
|
-
|
16
|
-
static forRepo(repo: HelmRepo): HelmChartManager;
|
21
|
+
constructor(repo: HelmRepo, dependencies: Dependencies);
|
17
22
|
chartVersions(name: string): Promise<import("../../common/k8s-api/endpoints/helm-charts.api").RawHelmChart[]>;
|
18
23
|
charts(): Promise<RepoHelmChartList>;
|
19
24
|
private executeCommand;
|
@@ -25,3 +30,4 @@ export declare class HelmChartManager {
|
|
25
30
|
}>;
|
26
31
|
protected cachedYaml(): Promise<RepoHelmChartList>;
|
27
32
|
}
|
33
|
+
export {};
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { HelmRepo } from "../../common/helm/helm-repo";
|
2
|
+
import { HelmChartManager } from "./helm-chart-manager";
|
3
|
+
declare const helmChartManagerInjectable: import("@ogre-tools/injectable").Injectable<HelmChartManager, unknown, HelmRepo>;
|
4
|
+
export default helmChartManagerInjectable;
|
@@ -9,11 +9,13 @@ import type { Cluster } from "../../common/cluster/cluster";
|
|
9
9
|
import type { SelfSignedCert } from "selfsigned";
|
10
10
|
import type { Spawn } from "../child-process/spawn.injectable";
|
11
11
|
import type { Logger } from "../../common/logger";
|
12
|
+
import type { WaitUntilPortIsUsed } from "./wait-until-port-is-used/wait-until-port-is-used.injectable";
|
12
13
|
export interface KubeAuthProxyDependencies {
|
13
14
|
readonly proxyBinPath: string;
|
14
15
|
readonly proxyCert: SelfSignedCert;
|
15
|
-
spawn: Spawn;
|
16
|
+
readonly spawn: Spawn;
|
16
17
|
readonly logger: Logger;
|
18
|
+
readonly waitUntilPortIsUsed: WaitUntilPortIsUsed;
|
17
19
|
}
|
18
20
|
export declare class KubeAuthProxy {
|
19
21
|
private readonly dependencies;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./wait-until-port-is-used.injectable").WaitUntilPortIsUsed, unknown, void>;
|
3
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./wait-until-port-is-used.injectable").WaitUntilPortIsUsed, void>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
export declare type WaitUntilPortIsUsed = (port: number, retryAfterMs: number, timeoutAfterMs: number) => Promise<void>;
|
2
|
+
declare const waitUntilPortIsUsedInjectable: import("@ogre-tools/injectable").Injectable<WaitUntilPortIsUsed, unknown, void>;
|
3
|
+
export default waitUntilPortIsUsedInjectable;
|
package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.d.ts
CHANGED
@@ -6,11 +6,13 @@ import * as proto from "../../../common/protocol-handler";
|
|
6
6
|
import URLParse from "url-parse";
|
7
7
|
import type { LensExtension } from "../../../extensions/lens-extension";
|
8
8
|
import type { LensProtocolRouterDependencies, RouteAttempt } from "../../../common/protocol-handler";
|
9
|
+
import type { BroadcastMessage } from "../../../common/ipc/broadcast-message.injectable";
|
9
10
|
export interface FallbackHandler {
|
10
11
|
(name: string): Promise<boolean>;
|
11
12
|
}
|
12
13
|
export interface LensProtocolRouterMainDependencies extends LensProtocolRouterDependencies {
|
13
14
|
showApplicationWindow: () => Promise<void>;
|
15
|
+
broadcastMessage: BroadcastMessage;
|
14
16
|
}
|
15
17
|
export declare class LensProtocolRouterMain extends proto.LensProtocolRouter {
|
16
18
|
protected readonly dependencies: LensProtocolRouterMainDependencies;
|
@@ -7,11 +7,13 @@ import "../../../../common/catalog-entities";
|
|
7
7
|
import type { Disposer } from "../../../utils";
|
8
8
|
import { CatalogRunEvent } from "../../../../common/catalog/catalog-run-event";
|
9
9
|
import type { Navigate } from "../../../navigation/navigate.injectable";
|
10
|
+
import type { Logger } from "../../../../common/logger";
|
10
11
|
export declare type EntityFilter = (entity: CatalogEntity) => any;
|
11
12
|
export declare type CatalogEntityOnBeforeRun = (event: CatalogRunEvent) => void | Promise<void>;
|
12
13
|
interface Dependencies {
|
13
14
|
navigate: Navigate;
|
14
15
|
readonly categoryRegistry: CatalogCategoryRegistry;
|
16
|
+
logger: Logger;
|
15
17
|
}
|
16
18
|
export declare class CatalogEntityRegistry {
|
17
19
|
protected readonly dependencies: Dependencies;
|
@@ -2,8 +2,9 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
+
import React from "react";
|
5
6
|
import type { Cluster } from "../../../../common/cluster/cluster";
|
6
7
|
export interface ClusterLocalTerminalSettingProps {
|
7
8
|
cluster: Cluster;
|
8
9
|
}
|
9
|
-
export declare const ClusterLocalTerminalSetting:
|
10
|
+
export declare const ClusterLocalTerminalSetting: React.FunctionComponent<ClusterLocalTerminalSettingProps>;
|
@@ -3,8 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
import type { DockTab } from "../dock/store";
|
7
6
|
export interface CreateResourceProps {
|
8
|
-
|
7
|
+
tabId: string;
|
9
8
|
}
|
10
9
|
export declare const CreateResource: React.FunctionComponent<CreateResourceProps>;
|
@@ -3,8 +3,7 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
import type { DockTab } from "../dock/store";
|
7
6
|
export interface EditResourceProps {
|
8
|
-
|
7
|
+
tabId: string;
|
9
8
|
}
|
10
9
|
export declare const EditResource: React.FunctionComponent<EditResourceProps>;
|
@@ -4,8 +4,7 @@
|
|
4
4
|
*/
|
5
5
|
import "./install-chart.scss";
|
6
6
|
import React from "react";
|
7
|
-
|
8
|
-
|
9
|
-
tab: DockTab;
|
7
|
+
export interface InstallChartProps {
|
8
|
+
tabId: string;
|
10
9
|
}
|
11
|
-
export declare const InstallChart: React.FunctionComponent<
|
10
|
+
export declare const InstallChart: React.FunctionComponent<InstallChartProps>;
|
@@ -2,8 +2,15 @@
|
|
2
2
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
|
-
import
|
5
|
+
import React from "react";
|
6
|
+
interface FormControlLabelProps {
|
7
|
+
control: React.ReactElement<any, any>;
|
8
|
+
label: React.ReactNode;
|
9
|
+
}
|
6
10
|
/**
|
7
11
|
* @deprecated Use <Switch/> instead from "../switch.tsx".
|
8
12
|
*/
|
9
|
-
export declare function FormSwitch(props: FormControlLabelProps
|
13
|
+
export declare function FormSwitch(props: FormControlLabelProps & {
|
14
|
+
children?: React.ReactNode;
|
15
|
+
}): React.FunctionComponentElement<any>;
|
16
|
+
export {};
|
@@ -3,15 +3,14 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import React from "react";
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
6
|
+
export interface SwitcherProps {
|
7
|
+
disabled?: boolean;
|
8
|
+
children?: React.ReactNode;
|
9
|
+
checked?: boolean;
|
10
|
+
onChange?: (event: React.ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
11
|
+
name?: string;
|
12
12
|
}
|
13
13
|
/**
|
14
14
|
* @deprecated Use <Switch/> instead from "../switch.tsx".
|
15
15
|
*/
|
16
|
-
export declare
|
17
|
-
export {};
|
16
|
+
export declare function Switcher({ disabled, checked, onChange, name, children }: SwitcherProps): JSX.Element;
|
@@ -3,11 +3,8 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import * as proto from "../../../common/protocol-handler";
|
6
|
-
import type {
|
7
|
-
|
8
|
-
interface Dependencies {
|
9
|
-
extensionLoader: ExtensionLoader;
|
10
|
-
extensionsStore: ExtensionsStore;
|
6
|
+
import type { LensProtocolRouterDependencies } from "../../../common/protocol-handler";
|
7
|
+
interface Dependencies extends LensProtocolRouterDependencies {
|
11
8
|
}
|
12
9
|
export declare class LensProtocolRouterRenderer extends proto.LensProtocolRouter {
|
13
10
|
protected dependencies: Dependencies;
|
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": "6.0.1-git.
|
5
|
+
"version": "6.0.1-git.e2b854d3af.0",
|
6
6
|
"copyright": "© 2022 OpenLens Authors",
|
7
7
|
"license": "MIT",
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
@@ -1,11 +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 type { HelmRepo } from "../../../common/helm/helm-repo";
|
6
|
-
export declare class HelmChartManager {
|
7
|
-
private repo;
|
8
|
-
constructor(repo: HelmRepo);
|
9
|
-
static forRepo(repo: HelmRepo): HelmChartManager;
|
10
|
-
charts(): Promise<any>;
|
11
|
-
}
|