@k8slens/extensions 6.0.1-git.d9785ad4dc.0 → 6.0.1-git.df1cc8b788.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-store/cluster-store.global-override-for-injectable.d.ts +6 -0
- 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/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 +6 -2
- 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/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 +1937 -143
- 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/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/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/shell-env.d.ts +1 -1
- package/dist/src/renderer/components/dock/terminal/terminal.d.ts +3 -1
- 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/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/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/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
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,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 {};
|
@@ -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.
|
@@ -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;
|
@@ -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 {};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { ApplicationBuilder } from "./get-application-builder";
|
2
1
|
import { LensMainExtension } from "../../../extensions/lens-main-extension";
|
3
2
|
import { LensRendererExtension } from "../../../extensions/lens-renderer-extension";
|
3
|
+
import type { DiContainer } from "@ogre-tools/injectable";
|
4
4
|
export declare class TestExtensionMain extends LensMainExtension {
|
5
5
|
}
|
6
6
|
export declare class TestExtensionRenderer extends LensRendererExtension {
|
@@ -11,8 +11,5 @@ export interface FakeExtensionOptions {
|
|
11
11
|
rendererOptions?: Partial<LensRendererExtension>;
|
12
12
|
mainOptions?: Partial<LensMainExtension>;
|
13
13
|
}
|
14
|
-
export declare
|
15
|
-
|
16
|
-
renderer: TestExtensionRenderer;
|
17
|
-
};
|
18
|
-
export declare const getExtensionFakeFor: (builder: ApplicationBuilder) => GetExtensionFake;
|
14
|
+
export declare const getExtensionFakeForMain: (di: DiContainer, id: string, name: string, options: Partial<LensMainExtension>) => TestExtensionMain;
|
15
|
+
export declare const getExtensionFakeForRenderer: (di: DiContainer, id: string, name: string, options: Partial<LensRendererExtension>) => TestExtensionRenderer;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
injectable: import("@ogre-tools/injectable").Injectable<import("./kube-watch-api").SubscribeStores, unknown, void>;
|
3
|
+
overridingInstantiate: import("@ogre-tools/injectable").Instantiate<import("./kube-watch-api").SubscribeStores, void>;
|
4
|
+
};
|
5
|
+
export default _default;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { ForwardedPort } from "./port-forward-item";
|
2
|
+
export declare type OpenPortForward = (portForward: ForwardedPort) => void;
|
3
|
+
declare const openPortForwardInjectable: import("@ogre-tools/injectable").Injectable<OpenPortForward, unknown, void>;
|
4
|
+
export default openPortForwardInjectable;
|
@@ -4,5 +4,4 @@
|
|
4
4
|
*/
|
5
5
|
import type { ForwardedPort } from "./port-forward-item";
|
6
6
|
export declare function portForwardAddress(portForward: ForwardedPort): string;
|
7
|
-
export declare function openPortForward(portForward: ForwardedPort): void;
|
8
7
|
export declare function predictProtocol(name: string | undefined): "http" | "https";
|
@@ -3,4 +3,4 @@
|
|
3
3
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
4
4
|
*/
|
5
5
|
import type { DiContainer } from "@ogre-tools/injectable";
|
6
|
-
export declare const overrideChannels: (mainDi: DiContainer) => (windowDi: DiContainer) => void;
|
6
|
+
export declare const overrideChannels: (mainDi: DiContainer) => (windowDi: DiContainer, windowId: string) => void;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import type { DiContainer } from "@ogre-tools/injectable";
|
2
|
-
export declare const overrideMessagingFromMainToWindow: (mainDi: DiContainer) => (windowDi: DiContainer) => void;
|
2
|
+
export declare const overrideMessagingFromMainToWindow: (mainDi: DiContainer) => (windowDi: DiContainer, windowId: string) => void;
|
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.df1cc8b788.0",
|
6
6
|
"copyright": "© 2022 OpenLens Authors",
|
7
7
|
"license": "MIT",
|
8
8
|
"main": "dist/src/extensions/extension-api.js",
|
@@ -1,17 +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
|
-
/**
|
6
|
-
* Opens a link using the program configured as the default browser
|
7
|
-
* on the target platform. Will reject URLs with a scheme other than
|
8
|
-
* http or https to prevent programs other than the default browser
|
9
|
-
* running.
|
10
|
-
*
|
11
|
-
* @param url The URL to open
|
12
|
-
*/
|
13
|
-
export declare function openBrowser(url: string): Promise<void>;
|
14
|
-
/**
|
15
|
-
* @deprecated use openBrowser
|
16
|
-
*/
|
17
|
-
export declare const openExternal: typeof openBrowser;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import type { ClusterFrameInfo } from "../../../../common/cluster-frames";
|
2
|
-
export interface SendToViewArgs {
|
3
|
-
channel: string;
|
4
|
-
frameInfo?: ClusterFrameInfo;
|
5
|
-
data?: unknown[];
|
6
|
-
}
|
7
|
-
export interface LensWindow {
|
8
|
-
id: string;
|
9
|
-
start: () => Promise<void>;
|
10
|
-
close: () => void;
|
11
|
-
show: () => void;
|
12
|
-
send: (args: SendToViewArgs) => void;
|
13
|
-
isVisible: boolean;
|
14
|
-
isStarting: boolean;
|
15
|
-
}
|
16
|
-
export declare const lensWindowInjectionToken: import("@ogre-tools/injectable").InjectionToken<LensWindow, void>;
|
@@ -1,12 +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 { SetRequired } from "type-fest";
|
6
|
-
import { LensRendererExtension } from "../../../extensions/lens-renderer-extension";
|
7
|
-
import type { ApplicationBuilder } from "./get-application-builder";
|
8
|
-
export declare class TestExtension extends LensRendererExtension {
|
9
|
-
}
|
10
|
-
export declare type FakeExtensionData = SetRequired<Partial<LensRendererExtension>, "id" | "name">;
|
11
|
-
export declare type GetRendererExtensionFake = (fakeExtensionData: FakeExtensionData) => TestExtension;
|
12
|
-
export declare const getRendererExtensionFakeFor: (builder: ApplicationBuilder) => GetRendererExtensionFake;
|