@k8slens/extensions 6.0.1-git.af4b74d9bd.0 → 6.0.1-git.ba54a64ebb.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/cluster-store/cluster-store.global-override-for-injectable.d.ts +6 -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/endpoints/horizontal-pod-autoscaler.api.d.ts +42 -17
- package/dist/src/common/k8s-api/endpoints/node.api.d.ts +1 -1
- package/dist/src/common/k8s-api/endpoints/pod.api.d.ts +1 -0
- package/dist/src/common/k8s-api/kube-api.d.ts +1 -1
- 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/test-utils/get-global-override.d.ts +4 -0
- package/dist/src/{behaviours/add-cluster/navigation-using-application-menu.test.d.ts → common/utils/__tests__/union-env-path.test.d.ts} +0 -0
- package/dist/src/common/utils/abort-controller.d.ts +5 -1
- package/dist/src/common/utils/convertCpu.d.ts +1 -1
- package/dist/src/common/utils/delay.d.ts +1 -1
- package/dist/src/common/utils/index.d.ts +0 -1
- package/dist/src/common/utils/open-link-in-browser.global-override-for-injectable.d.ts +9 -0
- package/dist/src/common/utils/open-link-in-browser.injectable.d.ts +3 -0
- package/dist/src/common/utils/tuple.d.ts +3 -2
- package/dist/src/common/utils/union-env-path.d.ts +12 -0
- package/dist/src/common/vars/package-json.injectable.d.ts +9 -0
- package/dist/src/extensions/common-api/utils.d.ts +6 -1
- package/dist/src/extensions/extension-api.js +1953 -159
- package/dist/src/extensions/extension-discovery/extension-discovery.d.ts +8 -0
- package/dist/src/{behaviours/extensions → features/add-cluster}/navigation-using-application-menu.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/analytics-for-installing-update.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/downgrading-version-update.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/force-user-to-update-when-too-long-time-since-update-was-downloaded.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/installing-update-using-topbar-button.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/installing-update-using-tray.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/installing-update.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/periodical-checking-of-updates.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/application-update/selection-of-update-stability.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/extension-api/disable-cluster-pages-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/extension-api/disable-sidebar-items-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/extension-api/reactively-disable-cluster-pages.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-details/extension-api/disable-kube-object-detail-items-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-details/extension-api/reactively-hide-kube-object-detail-item.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-menu/extension-api/disable-kube-object-menu-items-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-menu/extension-api/reactively-hide-kube-object-menu-item.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-status-icon/extension-api/disable-kube-object-statuses-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-status-icon/extension-api/reactively-hide-kube-object-status.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/kube-object-status-icon/show-status-for-a-kube-object.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/namespaces/edit-namespace-from-new-tab.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/namespaces/edit-namespace-from-previously-opened-tab.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/order-of-sidebar-items.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/sidebar-and-tab-navigation-for-core.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/sidebar-and-tab-navigation-for-extensions.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/visibility-of-sidebar-items.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/workloads/overview/extension-api/disable-workloads-overview-details-when-cluster-is-not-relevant.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/workloads/overview/extension-api/order-of-workload-overview-details.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/cluster/workloads/overview/extension-api/reactively-hide-workloads-overview-details-item.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/command-pallet/keyboard-shortcuts.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/extension-special-characters-in-page-registrations.test.d.ts +0 -0
- package/dist/src/{behaviours/preferences → features/extensions}/navigation-using-application-menu.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/add-custom-helm-repository-in-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/add-helm-repository-from-list-in-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/installing-chart/installing-helm-chart-from-new-tab.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/installing-chart/installing-helm-chart-from-previously-opened-tab.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/installing-chart/opening-dock-tab-for-installing-helm-chart.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/listing-active-helm-repositories-in-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-charts/remove-helm-repository-from-list-of-active-repository-in-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/helm-releases/showing-details-for-helm-release.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/navigate-to-extension-page.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/navigating-between-routes.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/closing-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/extension-adding-preference-tabs.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-application-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-editor-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-extension-specific-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-kubernetes-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-proxy-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-telemetry-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-to-terminal-preferences.test.d.ts +0 -0
- package/dist/src/{behaviours/welcome → features/preferences}/navigation-using-application-menu.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/preferences/navigation-using-tray.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/quitting-and-restarting-the-app/opening-application-window-using-tray.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/quitting-and-restarting-the-app/quitting-the-app-using-application-menu.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/resolve-system-proxy/resolve-system-proxy.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/routes/extension-api/reactively-disable-global-pages.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/status-bar/status-bar-items-originating-from-extensions.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/tray/clicking-tray-menu-item-originating-from-extension.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/tray/extension-adding-tray-items.test.d.ts +0 -0
- package/dist/src/{behaviours → features}/tray/multiple-separators-originating-from-extension.test.d.ts +0 -0
- package/dist/src/features/welcome/navigation-using-application-menu.test.d.ts +5 -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/menu/build-version.global-override-for-injectable.d.ts +9 -0
- package/dist/src/main/menu/build-version.injectable.d.ts +2 -0
- package/dist/src/main/menu/menu.d.ts +3 -1
- package/dist/src/main/protocol-handler/lens-protocol-router-main/lens-protocol-router-main.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/application-window/application-window-injection-token.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/application-window/create-application-window.injectable.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/application-window/create-electron-window.global-override-for-injectable.d.ts +5 -0
- package/dist/src/main/start-main-application/lens-window/application-window/create-first-application-window.injectable.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/application-window/create-lens-window.injectable.d.ts +18 -1
- package/dist/src/main/start-main-application/lens-window/application-window/get-current-application-window.injectable.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/application-window/send-to-channel-in-electron-browser-window.injectable.d.ts +2 -2
- package/dist/src/main/start-main-application/lens-window/get-visible-windows.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/lens-window/reload-current-application-window.injectable.d.ts +2 -0
- package/dist/src/main/start-main-application/lens-window/splash-window/splash-window.injectable.d.ts +1 -1
- package/dist/src/main/start-main-application/start-main-application.injectable.d.ts +1 -1
- package/dist/src/main/tray/tray-menu-registration.d.ts +1 -1
- package/dist/src/main/utils/channel/ipc-main/ipc-main.global-override-for-injectable.d.ts +5 -0
- package/dist/src/main/utils/shell-env.d.ts +1 -1
- 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/terminal/terminal.d.ts +3 -1
- package/dist/src/renderer/components/drawer/drawer-param-toggler.test.d.ts +5 -0
- package/dist/src/renderer/components/table/sorting.d.ts +2 -2
- package/dist/src/renderer/components/test-utils/get-application-builder.d.ts +29 -27
- package/dist/src/renderer/components/test-utils/get-extension-fake.d.ts +3 -6
- package/dist/src/renderer/components/tooltip/__mocks__/withTooltip.d.ts +1 -0
- package/dist/src/renderer/kube-watch-api/subscribe-stores.global-override-for-injectable.d.ts +5 -0
- package/dist/src/renderer/port-forward/open-port-forward.injectable.d.ts +4 -0
- package/dist/src/renderer/port-forward/port-forward-utils.d.ts +0 -1
- 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/dist/src/test-utils/channel-fakes/override-channels.d.ts +1 -1
- package/dist/src/test-utils/channel-fakes/override-messaging-from-main-to-window.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/common/utils/openBrowser.d.ts +0 -17
- package/dist/src/main/helm/__mocks__/helm-chart-manager.d.ts +0 -11
- package/dist/src/main/start-main-application/lens-window/application-window/application-window.injectable.d.ts +0 -2
- package/dist/src/main/start-main-application/lens-window/application-window/lens-window-injection-token.d.ts +0 -16
- package/dist/src/main/start-main-application/lens-window/reload-all-windows.injectable.d.ts +0 -2
- package/dist/src/main/start-main-application/lens-window/reload-window.injectable.d.ts +0 -3
- package/dist/src/renderer/components/test-utils/get-renderer-extension-fake.d.ts +0 -12
@@ -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;
|
File without changes
|
File without changes
|
package/dist/src/{behaviours → features}/application-update/downgrading-version-update.test.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
package/dist/src/{behaviours → features}/application-update/installing-update-using-tray.test.d.ts
RENAMED
File without changes
|
File without changes
|
package/dist/src/{behaviours → features}/application-update/periodical-checking-of-updates.test.d.ts
RENAMED
File without changes
|
package/dist/src/{behaviours → features}/application-update/selection-of-update-stability.test.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/dist/src/{behaviours → features}/cluster/namespaces/edit-namespace-from-new-tab.test.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
package/dist/src/{behaviours → features}/cluster/sidebar-and-tab-navigation-for-core.test.d.ts
RENAMED
File without changes
|
package/dist/src/{behaviours → features}/cluster/sidebar-and-tab-navigation-for-extensions.test.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/dist/src/{behaviours → features}/helm-releases/showing-details-for-helm-release.test.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/dist/src/{behaviours → features}/preferences/extension-adding-preference-tabs.test.d.ts
RENAMED
File without changes
|
package/dist/src/{behaviours → features}/preferences/navigation-to-application-preferences.test.d.ts
RENAMED
File without changes
|
package/dist/src/{behaviours → features}/preferences/navigation-to-editor-preferences.test.d.ts
RENAMED
File without changes
|
File without changes
|
package/dist/src/{behaviours → features}/preferences/navigation-to-kubernetes-preferences.test.d.ts
RENAMED
File without changes
|
package/dist/src/{behaviours → features}/preferences/navigation-to-proxy-preferences.test.d.ts
RENAMED
File without changes
|
package/dist/src/{behaviours → features}/preferences/navigation-to-telemetry-preferences.test.d.ts
RENAMED
File without changes
|
package/dist/src/{behaviours → features}/preferences/navigation-to-terminal-preferences.test.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
package/dist/src/{behaviours → features}/resolve-system-proxy/resolve-system-proxy.test.d.ts
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -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;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright (c) OpenLens Authors. All rights reserved.
|
3
|
+
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
|
+
*/
|
5
|
+
declare const _default: {
|
6
|
+
injectable: import("@ogre-tools/injectable").Injectable<string, unknown, void>;
|
7
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<string, void>;
|
8
|
+
};
|
9
|
+
export default _default;
|
@@ -2,8 +2,10 @@ import type { MenuItemOpts } from "./application-menu-items.injectable";
|
|
2
2
|
import type { ShowMessagePopup } from "../electron-app/features/show-message-popup.injectable";
|
3
3
|
export declare type MenuTopId = "mac" | "file" | "edit" | "view" | "help";
|
4
4
|
interface Dependencies {
|
5
|
+
appVersion: string;
|
6
|
+
extensionApiVersion: string;
|
5
7
|
showMessagePopup: ShowMessagePopup;
|
6
8
|
}
|
7
|
-
export declare const showAbout: ({ showMessagePopup }: Dependencies) => () => Promise<void>;
|
9
|
+
export declare const showAbout: ({ showMessagePopup, extensionApiVersion, appVersion }: Dependencies) => () => Promise<void>;
|
8
10
|
export declare function buildMenu(applicationMenuItems: MenuItemOpts[]): void;
|
9
11
|
export {};
|
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;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./create-electron-window.injectable").CreateElectronWindow, unknown, void>;
|
3
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./create-electron-window.injectable").CreateElectronWindow, void>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -1,11 +1,27 @@
|
|
1
|
-
import type { LensWindow, SendToViewArgs } from "./lens-window-injection-token";
|
2
1
|
import type { ContentSource, ElectronWindowTitleBarStyle } from "./create-electron-window.injectable";
|
2
|
+
import type { ClusterFrameInfo } from "../../../../common/cluster-frames";
|
3
3
|
export interface ElectronWindow {
|
4
4
|
show: () => void;
|
5
5
|
close: () => void;
|
6
6
|
send: (args: SendToViewArgs) => void;
|
7
7
|
loadFile: (filePath: string) => Promise<void>;
|
8
8
|
loadUrl: (url: string) => Promise<void>;
|
9
|
+
reload: () => void;
|
10
|
+
}
|
11
|
+
export interface SendToViewArgs {
|
12
|
+
channel: string;
|
13
|
+
frameInfo?: ClusterFrameInfo;
|
14
|
+
data?: unknown[];
|
15
|
+
}
|
16
|
+
export interface LensWindow {
|
17
|
+
id: string;
|
18
|
+
start: () => Promise<void>;
|
19
|
+
close: () => void;
|
20
|
+
show: () => void;
|
21
|
+
send: (args: SendToViewArgs) => void;
|
22
|
+
isVisible: boolean;
|
23
|
+
isStarting: boolean;
|
24
|
+
reload: () => void;
|
9
25
|
}
|
10
26
|
export interface LensWindowConfiguration {
|
11
27
|
id: string;
|
@@ -21,6 +37,7 @@ export interface LensWindowConfiguration {
|
|
21
37
|
onFocus?: () => void;
|
22
38
|
onBlur?: () => void;
|
23
39
|
onDomReady?: () => void;
|
40
|
+
onClose?: () => void;
|
24
41
|
}
|
25
42
|
declare const createLensWindowInjectable: import("@ogre-tools/injectable").Injectable<(configuration: LensWindowConfiguration) => LensWindow, unknown, void>;
|
26
43
|
export default createLensWindowInjectable;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { BrowserWindow } from "electron";
|
2
|
-
import type { SendToViewArgs } from "./lens-window
|
3
|
-
declare const sendToChannelInElectronBrowserWindowInjectable: import("@ogre-tools/injectable").Injectable<(browserWindow: BrowserWindow, { channel, frameInfo, data }: SendToViewArgs) => void, unknown, void>;
|
2
|
+
import type { SendToViewArgs } from "./create-lens-window.injectable";
|
3
|
+
declare const sendToChannelInElectronBrowserWindowInjectable: import("@ogre-tools/injectable").Injectable<(windowId: string, browserWindow: BrowserWindow, { channel, frameInfo, data }: SendToViewArgs) => void, unknown, void>;
|
4
4
|
export default sendToChannelInElectronBrowserWindowInjectable;
|
package/dist/src/main/start-main-application/lens-window/get-visible-windows.injectable.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const getVisibleWindowsInjectable: import("@ogre-tools/injectable").Injectable<() => import("./application-window/lens-window
|
1
|
+
declare const getVisibleWindowsInjectable: import("@ogre-tools/injectable").Injectable<() => import("./application-window/create-lens-window.injectable").LensWindow[], unknown, void>;
|
2
2
|
export default getVisibleWindowsInjectable;
|
package/dist/src/main/start-main-application/lens-window/splash-window/splash-window.injectable.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const splashWindowInjectable: import("@ogre-tools/injectable").Injectable<import("../application-window/lens-window
|
1
|
+
declare const splashWindowInjectable: import("@ogre-tools/injectable").Injectable<import("../application-window/create-lens-window.injectable").LensWindow, unknown, void>;
|
2
2
|
export default splashWindowInjectable;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
declare const startMainApplicationInjectable: import("@ogre-tools/injectable").Injectable<() => Promise<void>, unknown, void>;
|
1
|
+
declare const startMainApplicationInjectable: import("@ogre-tools/injectable").Injectable<(shouldStartWindow: boolean) => Promise<void>, unknown, void>;
|
2
2
|
export default startMainApplicationInjectable;
|
@@ -2,7 +2,7 @@
|
|
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
|
-
export declare type EnvironmentVariables = Record<string, string
|
5
|
+
export declare type EnvironmentVariables = Partial<Record<string, string>>;
|
6
6
|
/**
|
7
7
|
* Attempts to get the shell environment per the user's existing startup scripts.
|
8
8
|
* If the environment can't be retrieved after 5 seconds an error message is logged.
|
@@ -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>;
|
@@ -8,11 +8,14 @@ import type { TabId } from "../dock/store";
|
|
8
8
|
import type { TerminalApi } from "../../../api/terminal-api";
|
9
9
|
import type { ThemeStore } from "../../../themes/store";
|
10
10
|
import type { TerminalConfig } from "../../../../common/user-store/preferences-helpers";
|
11
|
+
import type { OpenLinkInBrowser } from "../../../../common/utils/open-link-in-browser.injectable";
|
11
12
|
export interface TerminalDependencies {
|
12
13
|
readonly spawningPool: HTMLElement;
|
13
14
|
readonly terminalConfig: IComputedValue<TerminalConfig>;
|
14
15
|
readonly terminalCopyOnSelect: IComputedValue<boolean>;
|
15
16
|
readonly themeStore: ThemeStore;
|
17
|
+
readonly isMac: boolean;
|
18
|
+
openLinkInBrowser: OpenLinkInBrowser;
|
16
19
|
}
|
17
20
|
export interface TerminalArguments {
|
18
21
|
tabId: TabId;
|
@@ -44,7 +47,6 @@ export declare class Terminal {
|
|
44
47
|
onClear: () => void;
|
45
48
|
onResize: () => void;
|
46
49
|
onActivate: () => void;
|
47
|
-
onClickLink: (evt: MouseEvent, link: string) => void;
|
48
50
|
onContextMenu: () => void;
|
49
51
|
onSelectionChange: () => void;
|
50
52
|
setFontSize: (fontSize: number) => void;
|
@@ -2,5 +2,5 @@
|
|
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 type { TableSortCallback } from "./table";
|
6
|
-
export declare function getSorted<T>(rawItems: T[], sortingCallback: TableSortCallback<T> | undefined,
|
5
|
+
import type { TableOrderBy, TableSortCallback } from "./table";
|
6
|
+
export declare function getSorted<T>(rawItems: T[], sortingCallback: TableSortCallback<T> | undefined, orderBy?: TableOrderBy): T[];
|
@@ -3,9 +3,10 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { LensRendererExtension } from "../../../extensions/lens-renderer-extension";
|
6
|
+
import type { ObservableMap } from "mobx";
|
6
7
|
import type { RenderResult } from "@testing-library/react";
|
7
8
|
import type { KubeResource } from "../../../common/rbac";
|
8
|
-
import type { DiContainer } from "@ogre-tools/injectable";
|
9
|
+
import type { DiContainer, Injectable } from "@ogre-tools/injectable";
|
9
10
|
import type { MenuItemOpts } from "../../../main/menu/application-menu-items.injectable";
|
10
11
|
import type { MenuItemConstructorOptions } from "electron";
|
11
12
|
import type { NavigateToHelmCharts } from "../../../common/front-end-routing/routes/cluster/helm/charts/navigate-to-helm-charts.injectable";
|
@@ -13,33 +14,37 @@ import type { MinimalTrayMenuItem } from "../../../main/tray/electron-tray/elect
|
|
13
14
|
import type { Route } from "../../../common/front-end-routing/front-end-route-injection-token";
|
14
15
|
import type { NavigateToRouteOptions } from "../../../common/front-end-routing/navigate-to-route-injection-token";
|
15
16
|
import type { LensMainExtension } from "../../../extensions/lens-main-extension";
|
16
|
-
|
17
|
-
|
18
|
-
declare type
|
17
|
+
import type { LensWindow } from "../../../main/start-main-application/lens-window/application-window/create-lens-window.injectable";
|
18
|
+
import type { FakeExtensionOptions } from "./get-extension-fake";
|
19
|
+
declare type Callback = (di: DiContainer) => void | Promise<void>;
|
20
|
+
declare type LensWindowWithHelpers = LensWindow & {
|
21
|
+
rendered: RenderResult;
|
22
|
+
di: DiContainer;
|
23
|
+
};
|
19
24
|
export interface ApplicationBuilder {
|
20
|
-
|
25
|
+
mainDi: DiContainer;
|
21
26
|
setEnvironmentToClusterFrame: () => ApplicationBuilder;
|
22
27
|
extensions: {
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
};
|
27
|
-
main: {
|
28
|
-
enable: EnableExtensions<LensMainExtension>;
|
29
|
-
disable: DisableExtensions<LensMainExtension>;
|
30
|
-
};
|
31
|
-
enable: (...extensions: {
|
32
|
-
renderer: LensRendererExtension;
|
28
|
+
enable: (...extensions: FakeExtensionOptions[]) => void;
|
29
|
+
disable: (...extensions: FakeExtensionOptions[]) => void;
|
30
|
+
get: (id: string) => {
|
33
31
|
main: LensMainExtension;
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
32
|
+
applicationWindows: Record<string, LensRendererExtension> & {
|
33
|
+
only: LensRendererExtension;
|
34
|
+
};
|
35
|
+
};
|
36
|
+
};
|
37
|
+
applicationWindow: {
|
38
|
+
closeAll: () => void;
|
39
|
+
only: LensWindowWithHelpers;
|
40
|
+
get: (id: string) => LensWindowWithHelpers;
|
41
|
+
getAll: () => LensWindowWithHelpers[];
|
42
|
+
create: (id: string) => LensWindowWithHelpers;
|
39
43
|
};
|
40
44
|
allowKubeResource: (resourceName: KubeResource) => ApplicationBuilder;
|
41
45
|
beforeApplicationStart: (callback: Callback) => ApplicationBuilder;
|
42
|
-
|
46
|
+
beforeWindowStart: (callback: Callback) => ApplicationBuilder;
|
47
|
+
startHidden: () => Promise<void>;
|
43
48
|
render: () => Promise<RenderResult>;
|
44
49
|
tray: {
|
45
50
|
click: (id: string) => Promise<void>;
|
@@ -61,19 +66,16 @@ export interface ApplicationBuilder {
|
|
61
66
|
navigate: NavigateToHelmCharts;
|
62
67
|
};
|
63
68
|
select: {
|
64
|
-
openMenu: (id: string) =>
|
69
|
+
openMenu: (id: string) => {
|
65
70
|
selectOption: (labelText: string) => void;
|
66
|
-
}
|
71
|
+
};
|
67
72
|
selectOption: (menuId: string, labelText: string) => void;
|
68
73
|
getValue: (menuId: string) => string;
|
69
74
|
};
|
70
75
|
}
|
71
|
-
interface DiContainers {
|
72
|
-
rendererDi: DiContainer;
|
73
|
-
mainDi: DiContainer;
|
74
|
-
}
|
75
76
|
export declare const getApplicationBuilder: () => ApplicationBuilder;
|
76
77
|
export declare type ToFlatChildren = (opts: MenuItemConstructorOptions) => (MenuItemOpts & {
|
77
78
|
path: string;
|
78
79
|
})[];
|
80
|
+
export declare const rendererExtensionsStateInjectable: Injectable<ObservableMap<string, LensRendererExtension>, unknown, void>;
|
79
81
|
export {};
|